Skip to content

Commit

Permalink
Update 20200617130500-create-comments.js
Browse files Browse the repository at this point in the history
  • Loading branch information
luiz-carlos-1985 authored May 6, 2021
1 parent 34b6c0f commit 40c407f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions migrations/20200617130500-create-comments.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export function up(queryInterface, Sequelize) {
'use strict';

module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable('comments',
{
id: {
Expand All @@ -21,8 +24,8 @@ export function up(queryInterface, Sequelize) {
},
}
);
}
export function down(queryInterface, _Sequelize) {
},
down: (queryInterface, Sequelize) => {

return queryInterface.dropTable('comments');
}
}}

0 comments on commit 40c407f

Please sign in to comment.