diff --git a/app/models/deleted_dossier.rb b/app/models/deleted_dossier.rb index bce5518ee..0538f09f1 100644 --- a/app/models/deleted_dossier.rb +++ b/app/models/deleted_dossier.rb @@ -1,6 +1,8 @@ class DeletedDossier < ApplicationRecord belongs_to :procedure + validates :dossier_id, uniqueness: true + enum reason: { user_request: 'user_request', manager_request: 'manager_request',