CSOL-site/migrations/20130531084137-add-token-la...

22 строки
549 B
JavaScript

var path = require('path');
var runMigrations = require(path.join(__dirname, '../db')).runMigrations;
module.exports = {
up: function(target, DataTypes, callback) {
runMigrations(target, [
{
type: 'addColumn',
args: ['signuptokens', 'lastReminder', {
type: DataTypes.DATE,
allowNull: true
}]
}
], callback);
},
down: function(target, DataTypes, callback) {
runMigrations(target, [
{type: 'removeColumn', args: ['signuptokens', 'lastReminder']}
], callback);
}
}