Sha256: 9d6dea92274b33353eee47d7625f10cc83bb9b9a809a00dfce01feb5a9948cee

Contents?: true

Size: 401 Bytes

Versions: 2

Compression:

Stored size: 401 Bytes

Contents

module Ecom
  module Core
    class CrewTime < ApplicationRecord
      belongs_to :attendance_sheet_entry
      belongs_to :revision_to, class_name: 'Ecom::Core::CrewTime', optional: true
      belongs_to :created_by, class_name: 'Ecom::Core::User'
      has_one :revision, class_name: 'Ecom::Core::CrewOvertime', foreign_key: :revision_to_id

      validates :hours, presence: true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ecom_core-1.1.20 app/models/ecom/core/crew_time.rb
ecom_core-1.1.19 app/models/ecom/core/crew_time.rb