Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tgmarinho/a148b33e972c720615332f15c38b0f6e to your computer and use it in GitHub Desktop.
Save tgmarinho/a148b33e972c720615332f15c38b0f6e to your computer and use it in GitHub Desktop.
module.exports = {
up: function (queryInterface, Sequelize) {
return Promise.all([
queryInterface.addColumn('User', 'name', {
type: Sequelize.STRING
}),
queryInterface.addColumn('User', 'nickname', {
type: Sequelize.STRING,
})
]);
},
down: function (queryInterface, Sequelize) {
return Promise.all([
queryInterface.removeColumn('User', 'name'),
queryInterface.removeColumn('User', 'nickname')
]);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment