forked from External/greenlight
restructure app
This commit is contained in:
@ -2,7 +2,9 @@ class CreateRooms < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :rooms do |t|
|
||||
t.belongs_to :user, index: true
|
||||
t.string :name, index: true
|
||||
t.string :uid, index: true
|
||||
t.string :bbb_id, index: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
@ -1,11 +0,0 @@
|
||||
class CreateMeetings < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :meetings do |t|
|
||||
t.belongs_to :room, index: true
|
||||
t.string :name, index: true
|
||||
t.string :uid, index: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
17
db/schema.rb
17
db/schema.rb
@ -10,24 +10,17 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20180504131713) do
|
||||
|
||||
create_table "meetings", force: :cascade do |t|
|
||||
t.integer "room_id"
|
||||
t.string "name"
|
||||
t.string "uid"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["name"], name: "index_meetings_on_name"
|
||||
t.index ["room_id"], name: "index_meetings_on_room_id"
|
||||
t.index ["uid"], name: "index_meetings_on_uid"
|
||||
end
|
||||
ActiveRecord::Schema.define(version: 20180504131705) do
|
||||
|
||||
create_table "rooms", force: :cascade do |t|
|
||||
t.integer "user_id"
|
||||
t.string "name"
|
||||
t.string "uid"
|
||||
t.string "bbb_id"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["bbb_id"], name: "index_rooms_on_bbb_id"
|
||||
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
|
||||
|
Reference in New Issue
Block a user