sequelize-migrate-tools
v0.1.0
Published
Write sequelize migrations faster
Downloads
4
Readme
sequelize-migrate-tools
Write sequelize migrations faster
Usage
addColumnsMigration
handles adding and removing columns by returning both up
and down
keys.
const { addColumnsMigration } = require('../helpers/addColumnsMigration')
const Sequelize = require("sequelize")
module.exports = addColumnsMigration('users', {
address: {
type: Sequelize.STRING(255),
allowNull: false
},
})