demarches-normaliennes/app/models/individual.rb

11 lines
400 B
Ruby
Raw Normal View History

2016-08-30 11:18:43 +02:00
class Individual < ActiveRecord::Base
belongs_to :dossier
validates_uniqueness_of :dossier_id
validates :gender, presence: true, allow_nil: false, allow_blank: false
2016-08-30 11:18:43 +02:00
validates :nom, presence: true, allow_nil: false, allow_blank: false
validates :prenom, presence: true, allow_nil: false, allow_blank: false
validates :birthdate, presence: true, allow_nil: false, allow_blank: false
end