]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/composite_primary_keys-1.1.0/test/fixtures/suburb.rb
Freezing composite primary key so that we can apply TomH's patch to it, and that...
[rails.git] / vendor / gems / composite_primary_keys-1.1.0 / test / fixtures / suburb.rb
1 class Suburb < ActiveRecord::Base\r
2   set_primary_keys :city_id, :suburb_id\r
3   has_many :streets,  :foreign_key => [:city_id, :suburb_id]\r
4   has_many :first_streets,  :foreign_key => [:city_id, :suburb_id], \r
5           :class_name => 'Street', :conditions => "streets.name = 'First Street'"\r
6 end