demarches-normaliennes/db/migrate/20220727085155_validate_missing_foreign_keys.rb

9 lines
283 B
Ruby
Raw Normal View History

2022-09-15 11:27:50 +02:00
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