b50913a2de749c7702056c5b5e37dcf52a7b07ca
[motion.git] / server / migrations / 20151202190300-test.js
1 'use strict';
2
3 module.exports = {
4   up: function(queryInterface, Sequelize) {
5     /*
6       Add altering commands here.
7       Return a promise to correctly handle asynchronicity.
8
9       Example:
10       return queryInterface.createTable('users', { id: Sequelize.INTEGER });
11     */
12
13     return queryInterface
14       .addColumn(
15         'channels',
16         'testAttr', {
17           type: Sequelize.STRING
18         }
19       );
20   },
21
22   down: function(queryInterface, Sequelize) {
23     /*
24       Add reverting commands here.
25       Return a promise to correctly handle asynchronicity.
26
27       Example:
28       return queryInterface.dropTable('users');
29     */
30
31     return queryInterface
32       .removeColumn('channels', 'testAttr');
33   }
34 };