test/fixtures/restaurant.rb in composite_primary_keys-8.1.6 vs test/fixtures/restaurant.rb in composite_primary_keys-8.1.7
- old
+ new
@@ -1,9 +1,9 @@
-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
+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