Sha256: 9e8f9d33fe7adb7a3b4a9dec82aefd1e3f6f95b55549ca4bce0a68dbf50e4771

Contents?: true

Size: 276 Bytes

Versions: 9

Compression:

Stored size: 276 Bytes

Contents

module Ecom
  module Core
    class OvertimeSheetEntry < ApplicationRecord
      belongs_to :overtime_sheet
      belongs_to :crew
      has_many :crew_overtimes

      validates :total_overtime, presence: true, numericality: { greater_than_or_equal_to: 0 }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ecom_core-1.3.14 app/models/ecom/core/overtime_sheet_entry.rb
ecom_core-1.3.13 app/models/ecom/core/overtime_sheet_entry.rb
ecom_core-1.3.12 app/models/ecom/core/overtime_sheet_entry.rb
ecom_core-1.3.11 app/models/ecom/core/overtime_sheet_entry.rb
ecom_core-1.3.10 app/models/ecom/core/overtime_sheet_entry.rb
ecom_core-1.3.9 app/models/ecom/core/overtime_sheet_entry.rb
ecom_core-1.3.8 app/models/ecom/core/overtime_sheet_entry.rb
ecom_core-1.3.7 app/models/ecom/core/overtime_sheet_entry.rb
ecom_core-1.3.6 app/models/ecom/core/overtime_sheet_entry.rb