Skip to content

Commit

Permalink
fix(hound): fix hound errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Proception committed Jan 18, 2019
1 parent f1644c2 commit 83a5626
Showing 1 changed file with 27 additions and 28 deletions.
55 changes: 27 additions & 28 deletions src/db/migrations/20190117014046-create-rate-summary.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable('RateSummaries', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
artId: {
type: Sequelize.INTEGER,
references: {
model: 'Arts',
key: 'id',
as: 'artId',
}
},
caculatedRate: {
type: Sequelize.INTEGER
},
createdAt: {
allowNull: false,
type: Sequelize.DATE
},
updatedAt: {
allowNull: false,
type: Sequelize.DATE
up: (queryInterface,
Sequelize) => queryInterface.createTable('RateSummaries', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
artId: {
type: Sequelize.INTEGER,
references: {
model: 'Arts',
key: 'id',
as: 'artId',
}
});
},
},
caculatedRate: {
type: Sequelize.INTEGER
},
createdAt: {
allowNull: false,
type: Sequelize.DATE
},
updatedAt: {
allowNull: false,
type: Sequelize.DATE
}
}),
down: queryInterface => queryInterface.dropTable('RateSummaries')
};

0 comments on commit 83a5626

Please sign in to comment.