class ScheduleEventParticipant < ActiveRecord::Base
  attr_accessible :name, :email, :charge, :phone, :institution

  # associations
  belongs_to :schedule_event

  # validations
  validates :name, :email, :charge, :phone, :institution, length: { maximum: 200 }
  validates :name, presence: true
  validates :email, format: { with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i }, allow_blank: true
end
