Created
April 27, 2020 23:56
-
-
Save aabccd021/645e7903986b7b4b716703ebff63e0f6 to your computer and use it in GitHub Desktop.
This file contains 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
module.exports = { | |
// eslint-disable-next-line no-unused-vars | |
up: (queryInterface, Sequelize) => { | |
return queryInterface.removeColumn('users', 'username'); | |
}, | |
down: (queryInterface, Sequelize) => { | |
return queryInterface.addColumn('users', 'username', { | |
allowNull: true, | |
type: Sequelize.STRING | |
}); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment