demarches-normaliennes/app/models/procedure_path.rb

9 lines
379 B
Ruby
Raw Normal View History

class ProcedurePath < ActiveRecord::Base
validates :path, format: { with: /\A[a-z0-9_\-]{3,50}\z/ }, presence: true, allow_blank: false, allow_nil: false
validates :administrateur_id, presence: true, allow_blank: false, allow_nil: false
validates :procedure_id, presence: true, allow_blank: false, allow_nil: false
belongs_to :procedure
belongs_to :administrateur
2017-04-04 15:27:04 +02:00
end