Sha256: 380c42d3cb2a5575b6a3bc474da70b1252dc47b3df0da0464ca6323a9d8920ea
Contents?: true
Size: 479 Bytes
Versions: 11
Compression:
Stored size: 479 Bytes
Contents
# This is treated as an abstract class. We cant use the same objectId as a foreign key for each Entity Type. # To get around this issue we create a Note type for each Entity type. Each EntityNote contains only a single # entry for the ObjectId. module Crm class Note < ::ApplicationRecord self.table_name = "Annotation" self.primary_key = "AnnotationId" # *** Dont add ObjectIds here. Foreign Keys must be unique validates :Subject, presence: true end end
Version data entries
11 entries across 11 versions & 1 rubygems