Sha256: 0558ee25c577488ed94bc84c4cc0bbf783017ab698f3a0f2d286709631e96ee2
Contents?: true
Size: 653 Bytes
Versions: 1
Compression:
Stored size: 653 Bytes
Contents
module Crm class Note < ActiveRecord::Base self.table_name = "Annotation" self.primary_key = "AnnotationId" belongs_to :account, foreign_key: 'ObjectId', crm_key: 'objectid_account' belongs_to :campaign, foreign_key: 'ObjectId', crm_key: 'objectid_campaign' belongs_to :campaign_response, foreign_key: 'ObjectId', crm_key: 'objectid_campaignresponse' belongs_to :case, foreign_key: 'ObjectId', crm_key: 'objectid_case' belongs_to :contact, foreign_key: 'ObjectId', crm_key: 'objectid_contact' belongs_to :invoice, foreign_key: 'ObjectId', crm_key: 'objectid_invoice' validates :Subject, presence: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord_sqlserver_crm-4.2.14 | app/models/crm/note.rb |