demarches-normaliennes/db/migrate/20220727085155_validate_missing_foreign_keys.rb
2022-09-20 15:16:52 +02:00

8 lines
283 B
Ruby

class ValidateMissingForeignKeys < ActiveRecord::Migration[6.1]
def change
validate_foreign_key :champs, :dossiers
validate_foreign_key :champs, :types_de_champ
validate_foreign_key :champs, :etablissements
validate_foreign_key :etablissements, :dossiers
end
end