Sha256: f6e9bc205ac76a7425d442367a036ba6dac9461906ee06d7fa003cd248eee0ef
Contents?: true
Size: 262 Bytes
Versions: 44
Compression:
Stored size: 262 Bytes
Contents
class Tariff < ActiveRecord::Base self.primary_keys = [:tariff_id, :start_date] has_many :product_tariffs, :foreign_key => [:tariff_id, :tariff_start_date] has_many :products, :through => :product_tariffs, :foreign_key => [:tariff_id, :tariff_start_date] end
Version data entries
44 entries across 44 versions & 1 rubygems