Sha256: c7ae1929607d48e8dd70b92c74516228805132728f99ab329f30ec68f06910cb

Contents?: true

Size: 258 Bytes

Versions: 11

Compression:

Stored size: 258 Bytes

Contents

module Crm
  class User < ::ApplicationRecord
    self.table_name = "SystemUser"
    self.primary_key = "SystemUserId"

    has_many :notes, foreign_key: 'ObjectId'

    validates :FirstName, presence: true
    validates :LastName, 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/user.rb
activerecord_sqlserver_crm-5.1.2 app/models/crm/user.rb
activerecord_sqlserver_crm-5.1.1 app/models/crm/user.rb
activerecord_sqlserver_crm-5.0.7 app/models/crm/user.rb
activerecord_sqlserver_crm-5.0.6 app/models/crm/user.rb
activerecord_sqlserver_crm-5.1.0 app/models/crm/user.rb
activerecord_sqlserver_crm-5.0.5 app/models/crm/user.rb
activerecord_sqlserver_crm-5.0.4 app/models/crm/user.rb
activerecord_sqlserver_crm-5.0.3 app/models/crm/user.rb
activerecord_sqlserver_crm-5.0.2 app/models/crm/user.rb
activerecord_sqlserver_crm-5.0.1 app/models/crm/user.rb