module JamRuby
  class RsvpRequestRsvpSlot < ActiveRecord::Base
    self.table_name = "rsvp_requests_rsvp_slots"

    self.primary_key = 'id'

    belongs_to :rsvp_request
    belongs_to :rsvp_slot

    #validates :rsvp_request, presence: true
    validates :rsvp_slot, presence: true
    validates :chosen, :inclusion => {:in => [nil, true, false]}
  end
end