aboutsummaryrefslogtreecommitdiffstats
path: root/migrations/20181008052713-addUserChannels.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2018-11-25 13:42:47 -0800
committerAdam Soltys <[email protected]>2018-11-25 13:42:47 -0800
commitd86f60074e877f032f5d9bc8dfc88701f22bc73a (patch)
treed11d38bbed15a48653f38733f9540ff6352a9f88 /migrations/20181008052713-addUserChannels.js
parentba7a9f3eb5e4e7af54e10db66cf650f756a6e410 (diff)
downloadcoinos-server-d86f60074e877f032f5d9bc8dfc88701f22bc73a.tar.gz
coinos-server-d86f60074e877f032f5d9bc8dfc88701f22bc73a.zip
get socket token from query
Diffstat (limited to 'migrations/20181008052713-addUserChannels.js')
-rw-r--r--migrations/20181008052713-addUserChannels.js11
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');
+ }
+};