2018-05-30 11:36:48 +02:00
|
|
|
class DeletedDossier < ApplicationRecord
|
|
|
|
belongs_to :procedure
|
2019-02-13 16:13:37 +01:00
|
|
|
|
|
|
|
def self.create_from_dossier(dossier)
|
|
|
|
DeletedDossier.create!(dossier_id: dossier.id, procedure: dossier.procedure, state: dossier.state, deleted_at: Time.now.utc)
|
|
|
|
end
|
2018-05-30 11:36:48 +02:00
|
|
|
end
|