Sha256: cab070a56bb94207b6d578b2cdfc15f8d5bb0f8fbabb93ce2ff0db44bc9c1af3

Contents?: true

Size: 697 Bytes

Versions: 4

Compression:

Stored size: 697 Bytes

Contents

module Ecom
  module Core
    class JobCard < ApplicationRecord
      belongs_to :maintenance_service_order
      belongs_to :service_provider, class_name: 'Ecom::Core::EquipmentLocation'
      belongs_to :checkout_by, class_name: 'Ecom::Core::User', optional: true
      belongs_to :checkout_to, class_name: 'Ecom::Core::EquipmentLocation', optional: true
      belongs_to :maintenance_status
      belongs_to :checkin_by, class_name: 'Ecom::Core::User', optional: true
      belongs_to :checkin_to, class_name: 'Ecom::Core::EquipmentLocation', optional: true
      belongs_to :prepared_by, class_name: 'Ecom::Core::User'

      validates :code, presence: true, uniqueness: true
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ecom_core-1.2.31 app/models/ecom/core/job_card.rb
ecom_core-1.2.30 app/models/ecom/core/job_card.rb
ecom_core-1.2.29 app/models/ecom/core/job_card.rb
ecom_core-1.2.28 app/models/ecom/core/job_card.rb