Sha256: c3eabc545c3fb74b15fef3a92383bd9562eff1cfb349cf9b78214009d0ee93b0
Contents?: true
Size: 659 Bytes
Versions: 11
Compression:
Stored size: 659 Bytes
Contents
module Crm class Note < ActiveRecord::Base self.table_name = "Annotation" self.primary_key = "AnnotationId" belongs_to :account, foreign_key: 'OwnerId', crm_key: 'Account_Annotation' belongs_to :campaign, foreign_key: 'OwnerId', crm_key: 'Campaign_Annotation' belongs_to :campaign_response, foreign_key: 'OwnerId', crm_key: 'CampaignResponse_Annotation' belongs_to :case, foreign_key: 'OwnerId', crm_key: 'Case_Annotation' belongs_to :contact, foreign_key: 'OwnerId', crm_key: 'Contact_Annotation' belongs_to :invoice, foreign_key: 'OwnerId', crm_key: 'Invoice_Annotation' validates :Subject, presence: true end end
Version data entries
11 entries across 11 versions & 1 rubygems