Skip to content

Commit

Permalink
Merge 4f58b7c into 0f6ee0d
Browse files Browse the repository at this point in the history
  • Loading branch information
micah-akpan committed Apr 11, 2019
2 parents 0f6ee0d + 4f58b7c commit 4751448
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/migrations/20190331141021-create-article.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ export default {
type: Sequelize.INTEGER,
defaultValue: 0,
},
totalReadTime: {
type: Sequelize.INTEGER,
defaultValue: 1,
},
createdAt: {
allowNull: false,
type: Sequelize.DATE,
Expand Down
4 changes: 4 additions & 0 deletions src/models/article.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ export default (sequelize, DataTypes) => {
type: DataTypes.INTEGER,
defaultValue: 0,
},
totalReadTime: {
type: DataTypes.INTEGER,
defaultValue: 1,
}
},
{
tableName: 'articles',
Expand Down

0 comments on commit 4751448

Please sign in to comment.