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

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