summaryrefslogtreecommitdiff
path: root/lib/migrations/20160515114000-user-add-tokens.js
blob: 3af490a9d6111bb8dd98708381425012360b0924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"use strict";

module.exports = {
    up: function (queryInterface, Sequelize) {
        queryInterface.addColumn('Users', 'accessToken', Sequelize.STRING);
        queryInterface.addColumn('Users', 'refreshToken', Sequelize.STRING);
        return;
    },

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