Sha256: 82ed69f2686859bcba0e768f6990e4ebd3c4be8501c6587bb32743ea88109569

Contents?: true

Size: 141 Bytes

Versions: 15

Compression:

Stored size: 141 Bytes

Contents

class Suburb < ActiveRecord::Base
  set_primary_keys :city_id, :suburb_id
  has_many :streets,  :foreign_key => [:city_id, :suburb_id]
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
composite_primary_keys-0.6.1 test/fixtures/suburb.rb
composite_primary_keys-0.6.3 test/fixtures/suburb.rb
composite_primary_keys-0.6.2 test/fixtures/suburb.rb
composite_primary_keys-0.7.0 test/fixtures/suburb.rb
composite_primary_keys-0.7.1 test/fixtures/suburb.rb
composite_primary_keys-0.7.3 test/fixtures/suburb.rb
composite_primary_keys-0.7.4 test/fixtures/suburb.rb
composite_primary_keys-0.8.0 test/fixtures/suburb.rb
composite_primary_keys-0.8.2 test/fixtures/suburb.rb
composite_primary_keys-0.7.5 test/fixtures/suburb.rb
composite_primary_keys-0.7.2 test/fixtures/suburb.rb
composite_primary_keys-0.8.4 test/fixtures/suburb.rb
composite_primary_keys-0.8.6 test/fixtures/suburb.rb
composite_primary_keys-0.8.3 test/fixtures/suburb.rb
composite_primary_keys-0.8.5 test/fixtures/suburb.rb