|
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: 2025_08_21_073434) do |
| 13 | +ActiveRecord::Schema[8.0].define(version: 2025_08_21_135954) do |
14 | 14 | # These are extensions that must be enabled in order to support this database
|
15 | 15 | enable_extension "pg_catalog.plpgsql"
|
16 | 16 | enable_extension "pg_trgm"
|
|
753 | 753 | end
|
754 | 754 |
|
755 | 755 | create_table "session_attendances", force: :cascade do |t|
|
756 |
| - t.bigint "patient_session_id", null: false |
757 | 756 | t.bigint "session_date_id", null: false
|
758 | 757 | t.boolean "attending", null: false
|
759 | 758 | t.datetime "created_at", null: false
|
760 | 759 | t.datetime "updated_at", null: false
|
761 |
| - t.index ["patient_session_id", "session_date_id"], name: "idx_on_patient_session_id_session_date_id_be8bd21ddf", unique: true |
| 760 | + t.bigint "patient_id", null: false |
| 761 | + t.index ["patient_id"], name: "index_session_attendances_on_patient_id" |
762 | 762 | t.index ["session_date_id"], name: "index_session_attendances_on_session_date_id"
|
763 | 763 | end
|
764 | 764 |
|
|
1055 | 1055 | add_foreign_key "school_moves", "locations", column: "school_id"
|
1056 | 1056 | add_foreign_key "school_moves", "patients"
|
1057 | 1057 | add_foreign_key "school_moves", "teams"
|
1058 |
| - add_foreign_key "session_attendances", "patient_sessions" |
| 1058 | + add_foreign_key "session_attendances", "patients" |
1059 | 1059 | add_foreign_key "session_attendances", "session_dates"
|
1060 | 1060 | add_foreign_key "session_dates", "sessions"
|
1061 | 1061 | add_foreign_key "session_notifications", "patients"
|
|
0 commit comments