Sha256: f9c1cc82473b6c0121a97b984da834dc9c8ae3e5e9c3f15b31a71a3c0021d007

Contents?: true

Size: 294 Bytes

Versions: 37

Compression:

Stored size: 294 Bytes

Contents

class Suburb < ActiveRecord::Base
  set_primary_keys :city_id, :suburb_id
  has_many :streets,  :foreign_key => [:city_id, :suburb_id]
  has_many :first_streets,  :foreign_key => [:city_id, :suburb_id], 
          :class_name => 'Street', :conditions => "streets.name = 'First Street'"
end

Version data entries

37 entries across 37 versions & 5 rubygems

Version Path
kovyrin-composite_primary_keys-2.3.2 test/fixtures/suburb.rb
mingusbabcock-composite_primary_keys-2.2.2.1 test/fixtures/suburb.rb
tyler-composite_primary_keys-1.1.0 test/fixtures/suburb.rb
tyler-composite_primary_keys-1.1.1 test/fixtures/suburb.rb
tyler-composite_primary_keys-1.1.2 test/fixtures/suburb.rb
tyler-composite_primary_keys-1.1.3 test/fixtures/suburb.rb
tyler-composite_primary_keys-1.1.4 test/fixtures/suburb.rb
composite_primary_keys-3.0.9 test/fixtures/suburb.rb
composite_primary_keys-3.0.8 test/fixtures/suburb.rb
composite_primary_keys-3.0.7 test/fixtures/suburb.rb
composite_primary_keys-3.0.4 test/fixtures/suburb.rb
composite_primary_keys-3.0.3 test/fixtures/suburb.rb
composite_primary_keys-3.0.0.b3 test/fixtures/suburb.rb
composite_primary_keys-3.0.0.b2 test/fixtures/suburb.rb
globe-composite_primary_keys-3.0.1 test/fixtures/suburb.rb
composite_primary_keys-2.3.5.1 test/fixtures/suburb.rb
composite_primary_keys-2.3.5 test/fixtures/suburb.rb
composite_primary_keys-2.3.2 test/fixtures/suburb.rb
composite_primary_keys-0.9.93 test/fixtures/suburb.rb
composite_primary_keys-0.9.0 test/fixtures/suburb.rb