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.6.0 test/fixtures/tariff.rb
composite_primary_keys-0.7.0 test/fixtures/tariff.rb
composite_primary_keys-0.7.1 test/fixtures/tariff.rb
composite_primary_keys-0.6.3 test/fixtures/tariff.rb
composite_primary_keys-0.8.2 test/fixtures/tariff.rb
composite_primary_keys-0.7.2 test/fixtures/tariff.rb
composite_primary_keys-0.7.4 test/fixtures/tariff.rb
composite_primary_keys-0.7.3 test/fixtures/tariff.rb
composite_primary_keys-0.7.5 test/fixtures/tariff.rb
composite_primary_keys-0.8.0 test/fixtures/tariff.rb
composite_primary_keys-0.9.92 test/fixtures/tariff.rb
composite_primary_keys-0.9.93 test/fixtures/tariff.rb
composite_primary_keys-1.0.1 test/fixtures/tariff.rb
composite_primary_keys-1.0.10 test/fixtures/tariff.rb
composite_primary_keys-1.0.2 test/fixtures/tariff.rb
composite_primary_keys-1.0.3 test/fixtures/tariff.rb
composite_primary_keys-0.9.90 test/fixtures/tariff.rb
composite_primary_keys-0.9.0 test/fixtures/tariff.rb
composite_primary_keys-0.8.3 test/fixtures/tariff.rb
composite_primary_keys-1.0.0 test/fixtures/tariff.rb