Sha256: 6b78d49653f45afd65621e1e65c24f81b5304303511f195197ce890b39e015f8
Contents?: true
Size: 376 Bytes
Versions: 11
Compression:
Stored size: 376 Bytes
Contents
module Crm class Uom < ::ApplicationRecord self.table_name = "UoM" self.primary_key = "UoMId" belongs_to :uom_schedule, foreign_key: 'UoMScheduleId', crm_key: 'uomscheduleid' has_many :invoice_products, foreign_key: 'UoMId' validates :Name, presence: true validates :Quantity, presence: true validates :uom_schedule, presence: true end end
Version data entries
11 entries across 11 versions & 1 rubygems