Skip to content

Commit

Permalink
vfep-1362-migration - modify referential integrity for ipeds_hd (#1110)
Browse files Browse the repository at this point in the history
* migration files

* fix migration status issue w/Jenkins

---------

Co-authored-by: nfstern02 <[email protected]>
  • Loading branch information
GcioGregg and nfstern02 authored Apr 29, 2024
1 parent 68804af commit f4f3705
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 87 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class UpdateCrosswalkIssueForeignKeyAddOnDeleteConstraint < ActiveRecord::Migration[7.0]
def change
remove_foreign_key :crosswalk_issues, column: :ipeds_hd_id
add_foreign_key :crosswalk_issues, :ipeds_hds, column: :ipeds_hd_id, on_delete: :cascade, validate: false
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class ValidateCrosswalkIssueForeignKeyAddOnDeleteConstraint < ActiveRecord::Migration[7.0]
def change
validate_foreign_key :crosswalk_issues, :ipeds_hds
end
end
Loading

0 comments on commit f4f3705

Please sign in to comment.