Validate deleted dossiers dossier_id uniqueness

This commit is contained in:
Paul Chavard 2020-03-31 14:33:54 +02:00
parent 60cb9bcf09
commit aa066bc20a

View file

@ -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',