summaryrefslogtreecommitdiff
path: root/lib/migrations/20160515114000-user-add-tokens.js
blob: 4d5818be5c2e0e6f7224776e3d99059aa8ce3cba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict'
module.exports = {
  up: function (queryInterface, Sequelize) {
    return queryInterface.addColumn('Users', 'accessToken', Sequelize.STRING).then(function () {
      return queryInterface.addColumn('Users', 'refreshToken', Sequelize.STRING)
    })
  },

  down: function (queryInterface, Sequelize) {
    return queryInterface.removeColumn('Users', 'accessToken').then(function () {
      return queryInterface.removeColumn('Users', 'refreshToken')
    })
  }
}