Sha256: c2776521f8c8a9c14da563ecd85aef2cb46051a6b1e50f67cd972e962acd6f3e

Contents?: true

Size: 340 Bytes

Versions: 53

Compression:

Stored size: 340 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_one :product_tariff, :foreign_key => [:tariff_id, :tariff_start_date]
	has_many :products, :through => :product_tariffs, :foreign_key => [:tariff_id, :tariff_start_date]
end

Version data entries

53 entries across 53 versions & 5 rubygems

Version Path
composite_primary_keys-0.9.91 test/fixtures/tariff.rb
composite_primary_keys-0.8.6 test/fixtures/tariff.rb
composite_primary_keys-0.8.5 test/fixtures/tariff.rb
composite_primary_keys-0.8.4 test/fixtures/tariff.rb
composite_primary_keys-1.0.8 test/fixtures/tariff.rb
composite_primary_keys-1.0.7 test/fixtures/tariff.rb
composite_primary_keys-2.2.2 test/fixtures/tariff.rb
composite_primary_keys-1.0.6 test/fixtures/tariff.rb
composite_primary_keys-1.0.5 test/fixtures/tariff.rb
composite_primary_keys-1.0.4 test/fixtures/tariff.rb
composite_primary_keys-2.2.1 test/fixtures/tariff.rb
composite_primary_keys-2.2.0 test/fixtures/tariff.rb
composite_primary_keys-1.1.0 test/fixtures/tariff.rb