validation à la création d'une procédure sur les attributs 'libelle', 'description' et 'lien démarche'
This commit is contained in:
parent
ca4e5130c2
commit
632c19bc48
3 changed files with 26 additions and 0 deletions
|
@ -2,4 +2,8 @@ class Procedure < ActiveRecord::Base
|
|||
has_many :types_de_piece_justificative
|
||||
has_many :dossiers
|
||||
belongs_to :evenement_vie
|
||||
|
||||
validates :libelle, presence: true, allow_blank: false, allow_nil: false
|
||||
validates :description, presence: true, allow_blank: false, allow_nil: false
|
||||
validates :lien_demarche, presence: true, allow_blank: false, allow_nil: false
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue