aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2019-01-28 12:12:13 -0500
committerMark Powers <markppowers0@gmail.com>2019-01-28 12:12:13 -0500
commit80ee170990e78753d07779d59bdfe516c399d254 (patch)
treed058cb57340e4eb0b349b8ac65afd105760c7dd0 /src/index.js
parenta6f52178eb79da9415d2770f2245f2cea8a05808 (diff)
Make home page a feed
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js8
1 files changed, 6 insertions, 2 deletions
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', {