Merge pull request #7191 from Remi-Frk/fix/7189/migrate_20220301160753

fix(migrate): lien administrateurs_procedures - administrateurs
This commit is contained in:
LeSim 2022-04-25 14:24:53 +02:00 committed by GitHub
commit f5fafbba24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,8 +2,8 @@ class AddAdministrateurForeignKeyToAdministrateursProcedure < ActiveRecord::Migr
include Database::MigrationHelpers
def up
delete_orphans :administrateurs_procedures, :administrateurs_procedures
add_foreign_key :administrateurs_procedures, :administrateurs_procedures
delete_orphans :administrateurs_procedures, :administrateurs
add_foreign_key :administrateurs_procedures, :administrateurs
end
def down