From 80ee170990e78753d07779d59bdfe516c399d254 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Mon, 28 Jan 2019 12:12:13 -0500 Subject: Make home page a feed --- src/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/index.js') diff --git a/src/index.js b/src/index.js index 1dd00a0..fdcef74 100644 --- a/src/index.js +++ b/src/index.js @@ -34,8 +34,12 @@ function setUpModels(){ const models = { "posts": database.define('posts', { description: { - type: Sequelize.STRING, - allowNull: false, + type: Sequelize.TEXT, + allowNull: false, + }, + type: { + type: Sequelize.STRING, + allowNull: false, }, }), "pictures": database.define('pictures', { -- cgit v1.2.3