Artifact Content
Not logged in

Artifact cbeb9b5debe48c27034a48045c7126e1f63bc251:


const Sequelize = require('sequelize')

module.exports = {
  up: sequelize => {
    return sequelize.queryInterface.addColumn('Users', 'destination', Sequelize.STRING)
      .then(() => sequelize.query('update "Users" set destination = floor(random()*1000000)'))
  },
  down: sequelize => {
    return sequelize.queryInterface.removeColumn('Users', 'destination')
  }
}