add room functionality

This commit is contained in:
Josh
2018-06-01 11:55:52 -04:00
parent 1bcd176285
commit 45fb18e609
9 changed files with 157 additions and 60 deletions

View File

@ -6,7 +6,7 @@ class CreateRooms < ActiveRecord::Migration[5.0]
t.string :uid, index: true
t.string :bbb_id, index: true
t.string :icon, index: true
t.integer :sessions, index: true
t.integer :sessions, index: true, default: 0
t.timestamps
end

View File

@ -18,11 +18,13 @@ ActiveRecord::Schema.define(version: 20180504131705) do
t.string "uid"
t.string "bbb_id"
t.string "icon"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "sessions", default: 0
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["bbb_id"], name: "index_rooms_on_bbb_id"
t.index ["icon"], name: "index_rooms_on_icon"
t.index ["name"], name: "index_rooms_on_name"
t.index ["sessions"], name: "index_rooms_on_sessions"
t.index ["uid"], name: "index_rooms_on_uid"
t.index ["user_id"], name: "index_rooms_on_user_id"
end