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

Version Path
activerecord_sqlserver_crm-5.1.3 app/models/crm/uom.rb
activerecord_sqlserver_crm-5.1.2 app/models/crm/uom.rb
activerecord_sqlserver_crm-5.1.1 app/models/crm/uom.rb
activerecord_sqlserver_crm-5.0.7 app/models/crm/uom.rb
activerecord_sqlserver_crm-5.0.6 app/models/crm/uom.rb
activerecord_sqlserver_crm-5.1.0 app/models/crm/uom.rb
activerecord_sqlserver_crm-5.0.5 app/models/crm/uom.rb
activerecord_sqlserver_crm-5.0.4 app/models/crm/uom.rb
activerecord_sqlserver_crm-5.0.3 app/models/crm/uom.rb
activerecord_sqlserver_crm-5.0.2 app/models/crm/uom.rb
activerecord_sqlserver_crm-5.0.1 app/models/crm/uom.rb