aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/migrations/0005-email-pod.js
blob: d90b674a135a38997e63a0b07b9ab8711b63fa08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
  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.')
}