Set up association and models

This commit is contained in:
Rishabh Singh 2019-08-17 18:10:27 +05:30
parent a1ce39643b
commit c9ae859bcf
5 changed files with 32 additions and 1 deletions

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2019_06_03_143107) do
ActiveRecord::Schema.define(version: 2019_08_17_094930) do
create_table "answers", force: :cascade do |t|
t.string "title"
@ -28,6 +28,15 @@ ActiveRecord::Schema.define(version: 2019_06_03_143107) do
t.index ["user_id"], name: "index_booth_requests_on_user_id"
end
create_table "booth_types", force: :cascade do |t|
t.integer "program_id"
t.string "title", null: false
t.string "description"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["program_id"], name: "index_booth_types_on_program_id"
end
create_table "booths", force: :cascade do |t|
t.string "title"
t.text "description"
@ -39,6 +48,8 @@ ActiveRecord::Schema.define(version: 2019_06_03_143107) do
t.integer "conference_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "booth_type_id"
t.index ["booth_type_id"], name: "index_booths_on_booth_type_id"
end
create_table "cfps", force: :cascade do |t|