demarches-normaliennes/app/models/invite.rb
2017-06-13 10:35:32 +02:00

9 lines
207 B
Ruby

class Invite < ActiveRecord::Base
belongs_to :dossier
belongs_to :user
validates_presence_of :email
validates_uniqueness_of :email, :scope => :dossier_id
validates :email, email_format: true
end