Remove password field
This commit is contained in:
11
server/migrations/20180707231201-remove-passwords.js
Normal file
11
server/migrations/20180707231201-remove-passwords.js
Normal file
@@ -0,0 +1,11 @@
|
||||
module.exports = {
|
||||
up: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.removeColumn('users', 'passwordDigest');
|
||||
},
|
||||
down: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.addColumn('users', 'passwordDigest', {
|
||||
type: Sequelize.STRING,
|
||||
allowNull: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user