diff --git a/migrations/20200617130500-create-comments.js b/migrations/20200617130500-create-comments.js index b046860..6579c43 100644 --- a/migrations/20200617130500-create-comments.js +++ b/migrations/20200617130500-create-comments.js @@ -1,4 +1,7 @@ -export function up(queryInterface, Sequelize) { +'use strict'; + +module.exports = { + up: (queryInterface, Sequelize) => { return queryInterface.createTable('comments', { id: { @@ -21,8 +24,8 @@ export function up(queryInterface, Sequelize) { }, } ); -} -export function down(queryInterface, _Sequelize) { +}, +down: (queryInterface, Sequelize) => { return queryInterface.dropTable('comments'); -} +}}