Sha256: 5828a0df08e5790e44237fea9f931be129ddd187dff658f949a0ac37a7dc0ee4
Contents?: true
Size: 467 Bytes
Versions: 1
Compression:
Stored size: 467 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
composite_primary_keys-8.1.0 | test/fixtures/employee.rb |