diff options
Diffstat (limited to 'migrations/20181008052713-addUserChannels.js')
| -rw-r--r-- | migrations/20181008052713-addUserChannels.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/migrations/20181008052713-addUserChannels.js b/migrations/20181008052713-addUserChannels.js new file mode 100644 index 00000000..29692445 --- /dev/null +++ b/migrations/20181008052713-addUserChannels.js @@ -0,0 +1,11 @@ +'use strict'; + +module.exports = { + up: (queryInterface, Sequelize) => { + return queryInterface.createTable('users_channels', { user_id: Sequelize.INTEGER, channel_id: Sequelize.INTEGER }); + }, + + down: (queryInterface, Sequelize) => { + return queryInterface.dropTable('users_channels'); + } +}; |
