Sha256: 23364baceea7c031a8ad27f82320ef3aa091b202521a43824beb1ba9bc2b100e

Contents?: true

Size: 306 Bytes

Versions: 2

Compression:

Stored size: 306 Bytes

Contents

module Crm
  class PriceListItem < ActiveRecord::Base
    self.table_name = "ProductPriceLevel"
    self.primary_key = "ProductPriceLevelId"

    belongs_to :price_list, foreign_key: 'PriceLevelId', crm_key: 'pricelevelid'
    belongs_to :product, foreign_key: 'ProductId', crm_key: 'productid'

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activerecord_sqlserver_crm-4.2.2 app/models/crm/price_list_item.rb
activerecord_sqlserver_crm-4.2.1 app/models/crm/price_list_item.rb