Sha256: fa09c0b0d3698c9fcb2607bc8201699ee332840fea0dba2d8ed1482ba7d5f60d

Contents?: true

Size: 152 Bytes

Versions: 2

Compression:

Stored size: 152 Bytes

Contents

class Salary < ActiveRecord::Base
  belongs_to :employee,
    :primary_key => [:id, :location_id],
    :foreign_key => [:employee_id, :location_id]
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
composite_primary_keys-11.0.0.rc2 test/fixtures/salary.rb
composite_primary_keys-8.1.0 test/fixtures/salary.rb