Sha256: 1419cce3f35f35b3d3cce6e38bae83b9d8172197ae4dd321f21b79a14f3202ed

Contents?: true

Size: 233 Bytes

Versions: 54

Compression:

Stored size: 233 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

54 entries across 54 versions & 5 rubygems

Version Path
composite_primary_keys-0.9.90 test/fixtures/product_tariff.rb
composite_primary_keys-0.9.93 test/fixtures/product_tariff.rb
composite_primary_keys-1.0.0 test/fixtures/product_tariff.rb
composite_primary_keys-1.0.1 test/fixtures/product_tariff.rb
composite_primary_keys-1.0.2 test/fixtures/product_tariff.rb
composite_primary_keys-2.2.2 test/fixtures/product_tariff.rb
composite_primary_keys-2.2.1 test/fixtures/product_tariff.rb
composite_primary_keys-2.2.0 test/fixtures/product_tariff.rb
composite_primary_keys-1.1.0 test/fixtures/product_tariff.rb
composite_primary_keys-1.0.7 test/fixtures/product_tariff.rb
composite_primary_keys-1.0.4 test/fixtures/product_tariff.rb
composite_primary_keys-1.0.8 test/fixtures/product_tariff.rb
composite_primary_keys-1.0.6 test/fixtures/product_tariff.rb
composite_primary_keys-1.0.5 test/fixtures/product_tariff.rb