]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/composite_primary_keys-1.1.0/test/fixtures/tariff.rb
The render method needs to be last, otherwise the error header won't get set. Needs...
[rails.git] / vendor / gems / composite_primary_keys-1.1.0 / test / fixtures / tariff.rb
1 class Tariff < ActiveRecord::Base\r
2         set_primary_keys [:tariff_id, :start_date]\r
3         has_many :product_tariffs, :foreign_key => [:tariff_id, :tariff_start_date]\r
4         has_one :product_tariff, :foreign_key => [:tariff_id, :tariff_start_date]\r
5         has_many :products, :through => :product_tariffs, :foreign_key => [:tariff_id, :tariff_start_date]\r
6 end\r