Validate deleted dossiers dossier_id uniqueness
This commit is contained in:
parent
60cb9bcf09
commit
aa066bc20a
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
class DeletedDossier < ApplicationRecord
|
class DeletedDossier < ApplicationRecord
|
||||||
belongs_to :procedure
|
belongs_to :procedure
|
||||||
|
|
||||||
|
validates :dossier_id, uniqueness: true
|
||||||
|
|
||||||
enum reason: {
|
enum reason: {
|
||||||
user_request: 'user_request',
|
user_request: 'user_request',
|
||||||
manager_request: 'manager_request',
|
manager_request: 'manager_request',
|
||||||
|
|
Loading…
Reference in a new issue