Skip to content

Commit e1c17fc

Browse files
committed
Revert "Migration to create ImportantNotice table"
This reverts commit 61bfbb3.
1 parent e4866c8 commit e1c17fc

2 files changed

Lines changed: 0 additions & 47 deletions

File tree

db/migrate/20251017133425_create_important_notices.rb

Lines changed: 0 additions & 26 deletions
This file was deleted.

db/schema.rb

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -387,23 +387,6 @@
387387
t.index ["immunisation_import_id", "vaccination_record_id"], name: "idx_on_immunisation_import_id_vaccination_record_id_588e859772", unique: true
388388
end
389389

390-
create_table "important_notices", force: :cascade do |t|
391-
t.datetime "created_at", null: false
392-
t.datetime "dismissed_at"
393-
t.bigint "dismissed_by_user_id"
394-
t.bigint "patient_id", null: false
395-
t.datetime "recorded_at", null: false
396-
t.bigint "team_id", null: false
397-
t.integer "type", null: false
398-
t.datetime "updated_at", null: false
399-
t.bigint "vaccination_record_id"
400-
t.index ["dismissed_by_user_id"], name: "index_important_notices_on_dismissed_by_user_id"
401-
t.index ["patient_id", "type", "recorded_at", "team_id"], name: "index_notices_on_patient_and_type_and_recorded_at_and_team", unique: true
402-
t.index ["patient_id"], name: "index_important_notices_on_patient_id"
403-
t.index ["team_id"], name: "index_important_notices_on_team_id"
404-
t.index ["vaccination_record_id"], name: "index_important_notices_on_vaccination_record_id"
405-
end
406-
407390
create_table "local_authorities", id: false, force: :cascade do |t|
408391
t.datetime "created_at", null: false
409392
t.date "end_date"
@@ -1032,10 +1015,6 @@
10321015
add_foreign_key "immunisation_imports_sessions", "sessions", on_delete: :cascade
10331016
add_foreign_key "immunisation_imports_vaccination_records", "immunisation_imports", on_delete: :cascade
10341017
add_foreign_key "immunisation_imports_vaccination_records", "vaccination_records", on_delete: :cascade
1035-
add_foreign_key "important_notices", "patients"
1036-
add_foreign_key "important_notices", "teams"
1037-
add_foreign_key "important_notices", "users", column: "dismissed_by_user_id"
1038-
add_foreign_key "important_notices", "vaccination_records"
10391018
add_foreign_key "location_programme_year_groups", "location_year_groups", on_delete: :cascade
10401019
add_foreign_key "location_programme_year_groups", "programmes", on_delete: :cascade
10411020
add_foreign_key "location_year_groups", "locations", on_delete: :cascade

0 commit comments

Comments
 (0)