Keep operation logs after dossier removal

This commit is contained in:
Paul Chavard 2020-03-19 18:33:38 +01:00
parent 1dfd450d18
commit 903cf0cef5
3 changed files with 16 additions and 2 deletions

View file

@ -12,8 +12,9 @@ class DossierOperationLog < ApplicationRecord
demander_un_avis: 'demander_un_avis'
}
belongs_to :dossier
has_one_attached :serialized
belongs_to :dossier, optional: true
belongs_to :bill_signature, optional: true
def self.create_and_serialize(params)