integration with migrations/seeds/etc

This commit is contained in:
Arjun Patel
2019-01-21 22:49:54 -08:00
parent 33afb962ae
commit 6e6eba3de4
9 changed files with 267 additions and 0 deletions
@@ -0,0 +1,19 @@
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.changeColumn('organizations', 'rating', {
type: Sequelize.INTEGER,
defaultValue: 5,
allowNull: false
});
},
down: (queryInterface, Sequelize) => {
return queryInterface.changeColumn('organizations', 'rating', {
type: Sequelize.INTEGER,
defaultValue: 0,
allowNull: false
});
}
};