Sha256: fabb013b8d7419ba11304a29d4ab07c51678493238e91beee170bc455427c8d2
Contents?: true
Size: 515 Bytes
Versions: 3
Compression:
Stored size: 515 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], :inverse_of => :employee end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
composite_primary_keys-8.1.8 | test/fixtures/employee.rb |
composite_primary_keys-8.1.7 | test/fixtures/employee.rb |
composite_primary_keys-8.1.6 | test/fixtures/employee.rb |