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

exports.up = function(db, callback) {
  db.createTable('methods_settlers', {
      method_id: { type: 'int' },
      settler_id: { type: 'int' }
    }, callback);
};

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