Sha256: 40a1415e785ed51562d27112ee84dfaf1a9407b11c40078e178d3b1d2840547e
Contents?: true
Size: 292 Bytes
Versions: 19
Compression:
Stored size: 292 Bytes
Contents
class Suburb < ActiveRecord::Base self.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
19 entries across 19 versions & 1 rubygems