Sha256: d884257a5acad85d094f8b08abddfa599aabb6ff73fbaa0948828afedc5ee28f
Contents?: true
Size: 485 Bytes
Versions: 24
Compression:
Stored size: 485 Bytes
Contents
class Employee < ActiveRecord::Base belongs_to :department, :foreign_key => [:department_id, :location_id] has_many :comments, :as => :person has_and_belongs_to_many :groups has_many :salaries, :primary_key => [:id, :location_id], :foreign_key => [:employee_id, :location_id] has_one :one_salary, :class_name => "Salary", :primary_key => [:id, :location_id], :foreign_key => [:employee_id, :location_id] end
Version data entries
24 entries across 24 versions & 1 rubygems