gancio-upstream/server/migrations/20191111234434-hide_comment.js

12 lines
296 B
JavaScript

module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.addColumn('comments', 'hidden', {
type: Sequelize.BOOLEAN,
defaultValue: false
})
},
down: (queryInterface, Sequelize) => {
return queryInterface.removeColumn('comments', 'hidden')
}
}