Skip to content

Commit aa3435c

Browse files
committed
chore: index schedules on scrim ID
1 parent 6218bdc commit aa3435c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

db/schema.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.2].define(version: 2025_10_26_030559) do
13+
ActiveRecord::Schema[7.2].define(version: 2025_10_26_233429) do
1414
create_schema "auth"
1515
create_schema "extensions"
1616
create_schema "graphql"
@@ -343,12 +343,14 @@
343343
t.jsonb "metadata", default: {}
344344
t.datetime "created_at", null: false
345345
t.datetime "updated_at", null: false
346+
t.uuid "scrim_id"
346347
t.index ["created_by_id"], name: "index_schedules_on_created_by_id"
347348
t.index ["event_type"], name: "index_schedules_on_event_type"
348349
t.index ["match_id"], name: "index_schedules_on_match_id"
349350
t.index ["organization_id", "start_time", "event_type"], name: "index_schedules_on_org_time_type"
350351
t.index ["organization_id", "start_time"], name: "idx_schedules_org_time"
351352
t.index ["organization_id"], name: "index_schedules_on_organization_id"
353+
t.index ["scrim_id"], name: "index_schedules_on_scrim_id"
352354
t.index ["start_time"], name: "index_schedules_on_start_time"
353355
t.index ["status"], name: "index_schedules_on_status"
354356
end
@@ -535,6 +537,7 @@
535537
add_foreign_key "players", "organizations"
536538
add_foreign_key "schedules", "matches"
537539
add_foreign_key "schedules", "organizations"
540+
add_foreign_key "schedules", "scrims", on_delete: :cascade
538541
add_foreign_key "schedules", "users", column: "created_by_id"
539542
add_foreign_key "scouting_targets", "organizations"
540543
add_foreign_key "scouting_targets", "users", column: "added_by_id"

0 commit comments

Comments
 (0)