fix(migrate): lien administrateurs_procedures - administrateurs

This commit is contained in:
Remi-Frk 2022-04-22 16:16:45 +02:00 committed by simon lehericey
parent f35d8a2e96
commit 17bf19e3f0

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