]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/composite_primary_keys-1.1.0/test/fixtures/product_tariff.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 / product_tariff.rb
1 class ProductTariff < ActiveRecord::Base\r
2         set_primary_keys :product_id, :tariff_id, :tariff_start_date\r
3         belongs_to :product, :foreign_key => :product_id\r
4         belongs_to :tariff,  :foreign_key => [:tariff_id, :tariff_start_date]\r
5 end\r