|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema[8.0].define(version: 2026_04_01_112940) do |
| 13 | +ActiveRecord::Schema[8.0].define(version: 2026_04_20_093307) do |
14 | 14 | # These are extensions that must be enabled in order to support this database |
15 | 15 | enable_extension "btree_gin" |
16 | 16 | enable_extension "citext" |
|
241 | 241 | t.index ["statement_id"], name: "index_contracts_on_statement_id" |
242 | 242 | end |
243 | 243 |
|
| 244 | + create_table "course_cohort_providers", force: :cascade do |t| |
| 245 | + t.bigint "course_cohort_id", null: false |
| 246 | + t.bigint "lead_provider_id", null: false |
| 247 | + t.datetime "created_at", null: false |
| 248 | + t.datetime "updated_at", null: false |
| 249 | + t.index ["course_cohort_id", "lead_provider_id"], name: "idx_on_course_cohort_id_lead_provider_id_3527d5c43f", unique: true |
| 250 | + t.index ["course_cohort_id"], name: "index_course_cohort_providers_on_course_cohort_id" |
| 251 | + t.index ["lead_provider_id"], name: "index_course_cohort_providers_on_lead_provider_id" |
| 252 | + end |
| 253 | + |
| 254 | + create_table "course_cohorts", force: :cascade do |t| |
| 255 | + t.bigint "course_id", null: false |
| 256 | + t.bigint "cohort_id", null: false |
| 257 | + t.datetime "created_at", null: false |
| 258 | + t.datetime "updated_at", null: false |
| 259 | + t.index ["cohort_id"], name: "index_course_cohorts_on_cohort_id" |
| 260 | + t.index ["course_id", "cohort_id"], name: "index_course_cohorts_on_course_id_and_cohort_id", unique: true |
| 261 | + t.index ["course_id"], name: "index_course_cohorts_on_course_id" |
| 262 | + end |
| 263 | + |
244 | 264 | create_table "course_groups", force: :cascade do |t| |
245 | 265 | t.string "name", null: false |
246 | 266 | t.datetime "created_at", null: false |
|
685 | 705 | add_foreign_key "contracts", "contract_templates" |
686 | 706 | add_foreign_key "contracts", "courses" |
687 | 707 | add_foreign_key "contracts", "statements" |
| 708 | + add_foreign_key "course_cohort_providers", "course_cohorts" |
| 709 | + add_foreign_key "course_cohort_providers", "lead_providers" |
| 710 | + add_foreign_key "course_cohorts", "cohorts" |
| 711 | + add_foreign_key "course_cohorts", "courses" |
688 | 712 | add_foreign_key "courses", "course_groups" |
689 | 713 | add_foreign_key "declarations", "applications" |
690 | 714 | add_foreign_key "declarations", "cohorts" |
|
0 commit comments