|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema.define(version: 2020_02_24_192634) do |
| 13 | +ActiveRecord::Schema.define(version: 2020_04_23_182618) do |
14 | 14 |
|
15 | 15 | # These are extensions that must be enabled in order to support this database |
16 | 16 | enable_extension "plpgsql" |
|
52 | 52 | t.integer "state", default: 0, null: false |
53 | 53 | t.boolean "lightningtalk_approved", default: false |
54 | 54 | t.datetime "contacted_at" |
55 | | - t.boolean "first_time_coaching" |
| 55 | + t.boolean "first_time_coaching", default: false |
56 | 56 | t.boolean "coach_the_coaches", default: false |
57 | 57 | t.string "sponsor" |
58 | 58 | t.index ["coach_id"], name: "index_coach_applications_on_coach_id" |
|
71 | 71 | t.index ["user_id"], name: "index_coaches_on_user_id" |
72 | 72 | end |
73 | 73 |
|
74 | | - create_table "event_group_attendees", force: :cascade do |t| |
75 | | - t.bigint "application_id" |
76 | | - t.bigint "event_group_id" |
| 74 | + create_table "event_groups", force: :cascade do |t| |
| 75 | + t.bigint "event_id" |
| 76 | + t.string "name" |
77 | 77 | t.datetime "created_at", null: false |
78 | 78 | t.datetime "updated_at", null: false |
79 | | - t.index ["application_id"], name: "index_event_group_attendees_on_application_id" |
80 | | - t.index ["event_group_id"], name: "index_event_group_attendees_on_event_group_id" |
| 79 | + t.index ["event_id"], name: "index_event_groups_on_event_id" |
81 | 80 | end |
82 | 81 |
|
83 | | - create_table "event_group_coaches", force: :cascade do |t| |
84 | | - t.bigint "coach_application_id" |
| 82 | + create_table "event_groups_applications", force: :cascade do |t| |
| 83 | + t.bigint "application_id" |
85 | 84 | t.bigint "event_group_id" |
86 | 85 | t.datetime "created_at", null: false |
87 | 86 | t.datetime "updated_at", null: false |
88 | | - t.index ["coach_application_id"], name: "index_event_group_coaches_on_coach_application_id" |
89 | | - t.index ["event_group_id"], name: "index_event_group_coaches_on_event_group_id" |
| 87 | + t.index ["application_id"], name: "index_event_groups_applications_on_application_id" |
| 88 | + t.index ["event_group_id"], name: "index_event_groups_applications_on_event_group_id" |
90 | 89 | end |
91 | 90 |
|
92 | | - create_table "event_groups", force: :cascade do |t| |
93 | | - t.bigint "event_id" |
94 | | - t.string "name" |
| 91 | + create_table "event_groups_coaches", force: :cascade do |t| |
| 92 | + t.bigint "coach_application_id" |
| 93 | + t.bigint "event_group_id" |
95 | 94 | t.datetime "created_at", null: false |
96 | 95 | t.datetime "updated_at", null: false |
97 | | - t.index ["event_id"], name: "index_event_groups_on_event_id" |
| 96 | + t.index ["coach_application_id"], name: "index_event_groups_coaches_on_coach_application_id" |
| 97 | + t.index ["event_group_id"], name: "index_event_groups_coaches_on_event_group_id" |
98 | 98 | end |
99 | 99 |
|
100 | 100 | create_table "events", id: :serial, force: :cascade do |t| |
|
149 | 149 |
|
150 | 150 | add_foreign_key "coach_applications", "coaches" |
151 | 151 | add_foreign_key "coach_applications", "events" |
152 | | - add_foreign_key "event_group_attendees", "applications" |
153 | | - add_foreign_key "event_group_attendees", "event_groups" |
154 | | - add_foreign_key "event_group_coaches", "coach_applications" |
155 | | - add_foreign_key "event_group_coaches", "event_groups" |
156 | 152 | add_foreign_key "event_groups", "events" |
| 153 | + add_foreign_key "event_groups_applications", "applications" |
| 154 | + add_foreign_key "event_groups_applications", "event_groups" |
| 155 | + add_foreign_key "event_groups_coaches", "coach_applications" |
| 156 | + add_foreign_key "event_groups_coaches", "event_groups" |
157 | 157 | end |
0 commit comments