Merge branch 'master' into copyright
[rails.git] / vendor / gems / composite_primary_keys-2.2.2 / test / fixtures / suburb.rb
1 class Suburb < ActiveRecord::Base
2   set_primary_keys :city_id, :suburb_id
3   has_many :streets,  :foreign_key => [:city_id, :suburb_id]
4   has_many :first_streets,  :foreign_key => [:city_id, :suburb_id], 
5           :class_name => 'Street', :conditions => "streets.name = 'First Street'"
6 end