aboutsummaryrefslogtreecommitdiffstats
path: root/migrations/20131110234112-add-exchanges_settlers.js
blob: 31ec74b0431e5c7fef8f46845822e015f388cdd1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var dbm = require('db-migrate');
var type = dbm.dataType;

exports.up = function(db, callback) {
  db.createTable('exchanges_settlers', {
      user_id: { type: 'int' },
      exchange_id: { type: 'int' },
      api_key: { type: 'string' }
    }, callback);
};

exports.down = function(db, callback) {
  db.dropTable('exchanges_settlers');
};