Sha256: d1922fb6e9bf3cba6e26e3ad5c6c6319a4853370bf906bf077d19560a923331d
Contents?: true
Size: 465 Bytes
Versions: 2
Compression:
Stored size: 465 Bytes
Contents
module Crm class Product < ActiveRecord::Base self.table_name = "Product" self.primary_key = "ProductId" belongs_to :price_list, foreign_key: 'PriceLevelId', crm_key: 'pricelevelid' belongs_to :currency, foreign_key: 'TransactionCurrencyId', crm_key: 'transactioncurrencyid' has_many :notes, foreign_key: 'ObjectId' has_many :invoice_products, foreign_key: 'ProductId' has_many :price_list_items, foreign_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/product.rb |
activerecord_sqlserver_crm-4.2.1 | app/models/crm/product.rb |