Sha256: 5571f9362085833c087e8855b3d6c737d9404da74ca1849d387fb08a38125697

Contents?: true

Size: 259 Bytes

Versions: 16

Compression:

Stored size: 259 Bytes

Contents

class Tariff < ActiveRecord::Base
	set_primary_keys [:tariff_id, :start_date]
	has_many :product_tariffs, :foreign_key => [:tariff_id, :tariff_start_date]
	has_many :products, :through => :product_tariffs, :foreign_key => [:tariff_id, :tariff_start_date]
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
composite_primary_keys-3.1.11 test/fixtures/tariff.rb
composite_primary_keys-5.0.0.rc1 test/fixtures/tariff.rb
composite_primary_keys-4.1.2 test/fixtures/tariff.rb
composite_primary_keys-4.1.1 test/fixtures/tariff.rb
composite_primary_keys-4.0.0 test/fixtures/tariff.rb
composite_primary_keys-4.0.0.beta9 test/fixtures/tariff.rb
composite_primary_keys-4.0.0.beta8 test/fixtures/tariff.rb
composite_primary_keys-4.0.0.beta7 test/fixtures/tariff.rb
composite_primary_keys-4.0.0.beta6 test/fixtures/tariff.rb
composite_primary_keys-4.0.0.beta5 test/fixtures/tariff.rb
composite_primary_keys-4.0.0.beta4 test/fixtures/tariff.rb
composite_primary_keys-4.0.0.beta3 test/fixtures/tariff.rb
composite_primary_keys-3.1.10 test/fixtures/tariff.rb
composite_primary_keys-4.0.0.beta2 test/fixtures/tariff.rb
composite_primary_keys-4.0.0.beta1 test/fixtures/tariff.rb
composite_primary_keys-3.1.9 test/fixtures/tariff.rb