Sha256: 3aeb4688f8c6c5cedb67f366167a947bd1c5182c870c7605296ce1c845ca03b2

Contents?: true

Size: 273 Bytes

Versions: 9

Compression:

Stored size: 273 Bytes

Contents

module Ecom
  module Core
    class AttendanceSheetEntry < ApplicationRecord
      belongs_to :attendance_sheet
      belongs_to :crew
      has_many :crew_times

      validates :total_hours, 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/attendance_sheet_entry.rb
ecom_core-1.3.13 app/models/ecom/core/attendance_sheet_entry.rb
ecom_core-1.3.12 app/models/ecom/core/attendance_sheet_entry.rb
ecom_core-1.3.11 app/models/ecom/core/attendance_sheet_entry.rb
ecom_core-1.3.10 app/models/ecom/core/attendance_sheet_entry.rb
ecom_core-1.3.9 app/models/ecom/core/attendance_sheet_entry.rb
ecom_core-1.3.8 app/models/ecom/core/attendance_sheet_entry.rb
ecom_core-1.3.7 app/models/ecom/core/attendance_sheet_entry.rb
ecom_core-1.3.6 app/models/ecom/core/attendance_sheet_entry.rb