Sha256: e025760fdf9c71dcf5820e973f3be60a1a871b080c27ac6fd8f9ebb2d3882f06

Contents?: true

Size: 334 Bytes

Versions: 2

Compression:

Stored size: 334 Bytes

Contents

module Crm
  class Case < ActiveRecord::Base
    self.table_name = "Incident"
    self.primary_key = "IncidentId"

    belongs_to :contact, foreign_key: 'ContactId', crm_key: 'customerid_contact'
    belongs_to :account, foreign_key: 'AccountId', crm_key: 'customerid_account'

    has_many :notes, foreign_key: 'ObjectId'

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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