fix: drop unused column and fk procedure_revisions.attestation_template_id which block procedure.destroy

This commit is contained in:
simon lehericey 2024-04-11 11:18:55 +02:00
parent ab4a6b1c7d
commit bda9c4b455
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5
3 changed files with 8 additions and 5 deletions

View file

@ -1,5 +1,4 @@
class ProcedureRevision < ApplicationRecord
self.ignored_columns += [:attestation_template_id]
self.implicit_order_column = :created_at
belongs_to :procedure, -> { with_discarded }, inverse_of: :revisions, optional: false
belongs_to :dossier_submitted_message, inverse_of: :revisions, optional: true, dependent: :destroy