Colubrina/backend/migrations/20220729091059-isBanned.js

21 lines
394 B
JavaScript
Raw Permalink Normal View History

2022-07-29 19:20:19 +10:00
"use strict"
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn("Users", "banned", {
type: Sequelize.BOOLEAN,
allowNull: false,
defaultValue: false
})
},
async down(queryInterface, Sequelize) {
/**
* Add reverting commands here.
*
* Example:
* await queryInterface.dropTable('users');
*/
}
}