Sha256: 1c0cf53319d08ebde6003fc55bda89595cd59da8e793312e7de277f9a6cbaa49

Contents?: true

Size: 462 Bytes

Versions: 3

Compression:

Stored size: 462 Bytes

Contents

# == Schema Information
#
# Table name: user_vacation_infos
#
#  id          :integer          not null, primary key
#  user_id     :integer
#  vacation_id :integer
#  spent_hours :float
#  created_at  :datetime
#  updated_at  :datetime
#

class UserVacationInfo < ActiveRecord::Base

  belongs_to :member
  belongs_to :vacation

  validates_presence_of :member
  validates_presence_of :vacation

  validates_uniqueness_of :member_id, :scope => :vacation_id
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pshq_engine-0.1.6 app/models/user_vacation_info.rb
pshq_engine-0.1.5 app/models/user_vacation_info.rb
pshq_engine-0.0.1 app/models/user_vacation_info.rb