Sha256: 6668f7ad22f7a74c54ae2d6f6d2e3fb19400ba7f63892de8c877cdc158dccc31

Contents?: true

Size: 160 Bytes

Versions: 2

Compression:

Stored size: 160 Bytes

Contents

class Department < ActiveRecord::Base
  set_primary_keys :department_id, :location_id
  has_many :employees, :foreign_key => [:department_id, :location_id]
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
composite_primary_keys-3.1.8 test/fixtures/department.rb
composite_primary_keys-3.1.7 test/fixtures/department.rb