Sha256: 6aa4625139797ba9d0925b033e2ded4e45644fb1598c2143e7c8a84f8d9ecc68

Contents?: true

Size: 502 Bytes

Versions: 3

Compression:

Stored size: 502 Bytes

Contents

# == Schema Information
#
# Table name: vacations
#
#  id              :integer          not null, primary key
#  name            :string(255)
#  total_hours     :integer
#  organization_id :integer
#  created_at      :datetime
#  updated_at      :datetime
#

class Vacation < ActiveRecord::Base

  belongs_to :organization

  has_many :users
  has_many :user_vacation_infos
  has_many :members, :through => :user_vacation_infos

  validates_presence_of :name
  validates_presence_of :total_hours

end

Version data entries

3 entries across 3 versions & 1 rubygems

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