Sha256: 4cbd69317e17eb1b6140cf5561826adc595c59f4750fbc2d13aa4fe6d418546c

Contents?: true

Size: 285 Bytes

Versions: 9

Compression:

Stored size: 285 Bytes

Contents

module Logistics
  module Core
    class EquipmentServiceRate < ApplicationRecord
      validates :code, :name, :rate_hr, :rate_km, :effective_date, :valid_until, presence: true
      validates :code, uniqueness: {scope: [:code, :name, :effective_date, :valid_until]}
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logistics_core-21.11.2 app/models/logistics/core/equipment_service_rate.rb
logistics_core-21.11.1 app/models/logistics/core/equipment_service_rate.rb
logistics_core-21.08.1 app/models/logistics/core/equipment_service_rate.rb
logistics_core-21.03.1 app/models/logistics/core/equipment_service_rate.rb
logistics_core-20.10.3 app/models/logistics/core/equipment_service_rate.rb
logistics_core-20.10.2 app/models/logistics/core/equipment_service_rate.rb
logistics_core-20.10.1 app/models/logistics/core/equipment_service_rate.rb
logistics_core-20.9.1 app/models/logistics/core/equipment_service_rate.rb
logistics_core-20.8.1 app/models/logistics/core/equipment_service_rate.rb