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
kovyrin-composite_primary_keys-2.3.2 test/fixtures/tariff.rb
mingusbabcock-composite_primary_keys-2.2.2.1 test/fixtures/tariff.rb
tyler-composite_primary_keys-1.1.0 test/fixtures/tariff.rb
tyler-composite_primary_keys-1.1.1 test/fixtures/tariff.rb
tyler-composite_primary_keys-1.1.2 test/fixtures/tariff.rb
tyler-composite_primary_keys-1.1.3 test/fixtures/tariff.rb
tyler-composite_primary_keys-1.1.4 test/fixtures/tariff.rb
composite_primary_keys-3.0.9 test/fixtures/tariff.rb
composite_primary_keys-3.0.8 test/fixtures/tariff.rb
composite_primary_keys-3.0.7 test/fixtures/tariff.rb
composite_primary_keys-3.0.4 test/fixtures/tariff.rb
composite_primary_keys-3.0.3 test/fixtures/tariff.rb
composite_primary_keys-3.0.0.b3 test/fixtures/tariff.rb
composite_primary_keys-3.0.0.b2 test/fixtures/tariff.rb
globe-composite_primary_keys-3.0.1 test/fixtures/tariff.rb
composite_primary_keys-2.3.5.1 test/fixtures/tariff.rb
composite_primary_keys-2.3.5 test/fixtures/tariff.rb
composite_primary_keys-2.3.2 test/fixtures/tariff.rb
composite_primary_keys-0.7.1 test/fixtures/tariff.rb
composite_primary_keys-0.6.3 test/fixtures/tariff.rb