Merge pull request #7941 from tchak/add-foreign-keys-to-commentaires

fix(message): add instructeurs foreign key
This commit is contained in:
LeSim 2022-10-20 14:49:57 +02:00 committed by GitHub
commit 22135a87ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddForeignKeyToCommentairesInstructeurId < ActiveRecord::Migration[6.1]
def change
add_foreign_key :commentaires, :instructeurs, validate: false
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2022_10_13_142432) do
ActiveRecord::Schema.define(version: 2022_10_20_094031) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
@ -913,6 +913,7 @@ ActiveRecord::Schema.define(version: 2022_10_13_142432) do
add_foreign_key "closed_mails", "procedures"
add_foreign_key "commentaires", "dossiers"
add_foreign_key "commentaires", "experts"
add_foreign_key "commentaires", "instructeurs"
add_foreign_key "dossier_operation_logs", "bill_signatures"
add_foreign_key "dossier_transfer_logs", "dossiers"
add_foreign_key "dossiers", "dossier_transfers"