mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-11-23 03:36:42 +11:00
21 lines
394 B
JavaScript
21 lines
394 B
JavaScript
|
"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');
|
||
|
*/
|
||
|
}
|
||
|
}
|