2015-09-21 17:59:03 +02:00
|
|
|
class Procedure < ActiveRecord::Base
|
|
|
|
has_many :types_de_piece_justificative
|
2015-10-26 17:35:02 +01:00
|
|
|
has_many :types_de_champs
|
2015-09-21 17:59:03 +02:00
|
|
|
has_many :dossiers
|
|
|
|
belongs_to :evenement_vie
|
2015-09-22 11:21:52 +02:00
|
|
|
|
|
|
|
validates :libelle, presence: true, allow_blank: false, allow_nil: false
|
|
|
|
validates :description, presence: true, allow_blank: false, allow_nil: false
|
2015-10-26 16:48:41 +01:00
|
|
|
#validates :lien_demarche, presence: true, allow_blank: false, allow_nil: false
|
2015-09-21 17:59:03 +02:00
|
|
|
end
|