redo rooms page

This commit is contained in:
Josh
2018-05-31 15:04:18 -04:00
parent 9e5250353b
commit ede80075c1
27 changed files with 258 additions and 154 deletions

View File

@ -1,6 +1,7 @@
class CreateUsers < ActiveRecord::Migration[5.0]
def change
create_table :users do |t|
t.belongs_to :room, index: true
t.string :provider
t.string :uid
t.string :name

View File

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

View File

@ -17,15 +17,18 @@ ActiveRecord::Schema.define(version: 20180504131705) do
t.string "name"
t.string "uid"
t.string "bbb_id"
t.string "icon"
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 ["uid"], name: "index_rooms_on_uid"
t.index ["user_id"], name: "index_rooms_on_user_id"
end
create_table "users", force: :cascade do |t|
t.integer "room_id"
t.string "provider"
t.string "uid"
t.string "name"
@ -36,6 +39,7 @@ ActiveRecord::Schema.define(version: 20180504131705) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["password_digest"], name: "index_users_on_password_digest", unique: true
t.index ["room_id"], name: "index_users_on_room_id"
end
end