fix: drop unused column and fk procedure_revisions.attestation_template_id which block procedure.destroy
This commit is contained in:
parent
ab4a6b1c7d
commit
bda9c4b455
3 changed files with 8 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue