Sha256: fed60447cc8f472841fc3d3e71ee076750b2ad4cdbeba0922c92a49b6bafe8d5
Contents?: true
Size: 360 Bytes
Versions: 81
Compression:
Stored size: 360 Bytes
Contents
class Restaurant < ActiveRecord::Base self.primary_keys = :franchise_id, :store_id has_and_belongs_to_many :suburbs, :foreign_key => [:franchise_id, :store_id], :association_foreign_key => [:city_id, :suburb_id] has_and_belongs_to_many :products, :foreign_key => [:franchise_id, :store_id], :association_foreign_key => :product_id end
Version data entries
81 entries across 81 versions & 1 rubygems
Version | Path |
---|---|
composite_primary_keys-5.0.0 | test/fixtures/restaurant.rb |