2016-08-30 11:18:43 +02:00
|
|
|
class Individual < ActiveRecord::Base
|
|
|
|
belongs_to :dossier
|
|
|
|
|
|
|
|
validates_uniqueness_of :dossier_id
|
|
|
|
|
2016-12-20 17:01:16 +01:00
|
|
|
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
|