4 up: function(queryInterface, Sequelize) {
6 Add altering commands here.
7 Return a promise to correctly handle asynchronicity.
10 return queryInterface.createTable('users', { id: Sequelize.INTEGER });
12 queryInterface.addIndex('dashboards', ['name'], {
14 indicesType: 'UNIQUE',
19 down: function(queryInterface, Sequelize) {
21 Add reverting commands here.
22 Return a promise to correctly handle asynchronicity.
25 return queryInterface.dropTable('users');
27 queryInterface.removeIndex('dashboards', 'name');