aboutsummaryrefslogtreecommitdiffstats
path: root/migrations/20131110235240-add-methods.js
blob: 8028981229e02036db04597bb11bc36f0ecacc3d (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', {
    id: { type: 'int', primaryKey: true, autoIncrement: true },
    name: { type: 'string' }
  }, callback);
};

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