Sha256: 557cacdc1cea15aa32f1ad12b7e89a5f20d8521827e7025ef6fe5e6609d8c98a

Contents?: true

Size: 228 Bytes

Versions: 24

Compression:

Stored size: 228 Bytes

Contents

class ProductTariff < ActiveRecord::Base
	set_primary_keys :product_id, :tariff_id, :tariff_start_date
	belongs_to :product, :foreign_key => :product_id
	belongs_to :tariff,  :foreign_key => [:tariff_id, :tariff_start_date]
end

Version data entries

24 entries across 24 versions & 1 rubygems

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