Created
June 26, 2020 07:56
-
-
Save kianaditya/52a873fda2a9923c4a6df7cc66a4bf74 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
module.exports = { | |
up: (queryInterface, Sequelize) => { | |
return Promise.all([ | |
queryInterface.addColumn('Users', 'email', { | |
type: Sequelize.STRING, | |
allowNull: false, | |
}), | |
queryInterface.addColumn('Users', 'encryptedPassword', { | |
type: Sequelize.STRING, | |
allowNull: false, | |
}), | |
]) | |
}, | |
down: (queryInterface, Sequelize) => { | |
return Promise.all([ | |
queryInterface.removeColumn('Users', 'email'), | |
queryInterface.removeColumn('Users', 'encryptedPassword'), | |
]) | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment