Add default order to dossier.dossier_operation_logs
This commit is contained in:
parent
d7faa7aeab
commit
413abccd3c
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class Dossier < ApplicationRecord
|
|||
has_many :previous_followers_instructeurs, -> { distinct }, through: :previous_follows, source: :instructeur
|
||||
has_many :avis, inverse_of: :dossier, dependent: :destroy
|
||||
|
||||
has_many :dossier_operation_logs, dependent: :nullify
|
||||
has_many :dossier_operation_logs, -> { order(:created_at) }, dependent: :nullify, inverse_of: :dossier
|
||||
|
||||
belongs_to :groupe_instructeur
|
||||
has_one :procedure, through: :groupe_instructeur
|
||||
|
|
Loading…
Reference in a new issue