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.4 test/fixtures/product_tariff.rb
composite_primary_keys-3.1.2 test/fixtures/product_tariff.rb
composite_primary_keys-3.1.1 test/fixtures/product_tariff.rb
composite_primary_keys-3.1.0 test/fixtures/product_tariff.rb