aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/initializers/migrations/0005-email-pod.js
blob: d90b674a135a38997e63a0b07b9ab8711b63fa08 (plain) (tree)



















                                                                                             
/*
  This is just an example.
*/

// utils = { transaction, queryInterface }
exports.up = function (utils, callback) {
  const q = utils.queryInterface
  const Sequelize = utils.Sequelize

  const data = {
    type: Sequelize.STRING(400),
    allowNull: false
  }

  q.addColumn('Pods', 'email', data, { transaction: utils.transaction }).asCallback(callback)
}

exports.down = function (options, callback) {
  throw new Error('Not implemented.')
}