diff --git a/db/schema.rb b/db/schema.rb index aa7304022..0baafd421 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -383,6 +383,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_08_02_125711) do add_foreign_key "case_logs", "organisations", column: "owning_organisation_id", on_delete: :cascade add_foreign_key "case_logs", "schemes" add_foreign_key "locations", "schemes" + add_foreign_key "schemes", "organisations", column: "managing_organisation_id" add_foreign_key "schemes", "organisations", column: "owning_organisation_id", on_delete: :cascade add_foreign_key "users", "organisations", on_delete: :cascade end