summaryrefslogtreecommitdiff
path: root/lib/migrations/20180525153000-user-add-delete-token.js
blob: 642fa5d43ce0d9118cd95ce0a6e6459071b1422d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
module.exports = {
  up: function (queryInterface, Sequelize) {
    return queryInterface.addColumn('Users', 'deleteToken', {
      type: Sequelize.UUID,
      defaultValue: Sequelize.UUIDV4
    })
  },

  down: function (queryInterface, Sequelize) {
    return queryInterface.removeColumn('Users', 'deleteToken')
  }
}