spee.ch/migrations/remove-Email-from-User.js
2017-09-19 18:50:25 -07:00

20 lines
426 B
JavaScript

module.exports = {
up: (queryInterface, Sequelize) => {
// logic for transforming into the new state
return queryInterface.removeColumn(
'User',
'Email'
);
},
down: (queryInterface, Sequelize) => {
// logic for reverting the changes
return queryInterface.addColumn(
'User',
'Email',
{
type : Sequelize.STRING,
allowNull: true,
}
);
},
};