2 changed files with 0 additions and 3 deletions
@ -1,11 +1,9 @@
|
||||
class AddDeleteCascadeFromOrgsDown < ActiveRecord::Migration[7.0] |
||||
def up |
||||
add_foreign_key :schemes, :organisations, column: "owning_organisation_id", on_delete: :cascade |
||||
add_foreign_key :schemes, :organisations, column: "managing_organisation_id" |
||||
end |
||||
|
||||
def down |
||||
remove_foreign_key :schemes, :organisations, column: "managing_organisation_id" |
||||
remove_foreign_key :schemes, :organisations, column: "owning_organisation_id", on_delete: :cascade |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue