Merge pull request #10727 from mfo/US/validate-fk-champs-dossiers
correctif, ETQ opérateur de DS, je souhaite garantir la consistence des données entre champs et dossiers (pas de champs sans dossier)
This commit is contained in:
commit
8a54650f93
2 changed files with 10 additions and 1 deletions
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class ValidateForeignKeyChampsDossiers < ActiveRecord::Migration[7.0]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
validate_foreign_key :champs, :dossiers
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2024_08_29_141049) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2024_08_30_125438) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_buffercache"
|
||||
enable_extension "pg_stat_statements"
|
||||
|
|
Loading…
Reference in a new issue