From 40c407f11b6a1ad07daca6021621df81d354e7cd Mon Sep 17 00:00:00 2001 From: Luiz Carlos <66796526+luiz-carlos-1985@users.noreply.github.com> Date: Thu, 6 May 2021 15:51:39 -0300 Subject: [PATCH] Update 20200617130500-create-comments.js --- migrations/20200617130500-create-comments.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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'); -} +}}