Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Mohit21GoJs/912f0b2868960e7f2406b437c49a6a0f to your computer and use it in GitHub Desktop.
Save Mohit21GoJs/912f0b2868960e7f2406b437c49a6a0f 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('Challenges', 'name'),
queryInterface.removeColumn('Challenges', 'nickname')
]);
}
};
@mblaanco
Copy link

I love u dud. thanks 4ever.

@brunokiafuka
Copy link

brunokiafuka commented Oct 28, 2019

Thanks, @Mohit21GoJs

@Mohit21GoJs
Copy link
Author

I love u dud. thanks 4ever.

you are welcome :D glad it helped you 👍

@Mohit21GoJs
Copy link
Author

Thanks, @Mohit21GoJs

you are welcome 👍

@kevingatp
Copy link

Thankyou man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment