Sha256: c07d46f1778e33e9c32252d5a4bf10c5a1a88ff9cc769503928624d51c9e950a
Contents?: true
Size: 886 Bytes
Versions: 16
Compression:
Stored size: 886 Bytes
Contents
module Ecom module Core class WorkItemResourceRequirementTemplate < ApplicationRecord belongs_to :project_work_item_template belongs_to :resource_type belongs_to :work_item_quantity_measurement_unit, class_name: 'Ecom::Core::MeasurementUnit' belongs_to :resource_quantity_measurement_unit, class_name: 'Ecom::Core::MeasurementUnit' validates :project_work_item_template_id, :project_work_item_template, :resource_type_id, :resource_type, :work_item_quantity_measurement_unit_id, :work_item_quantity_measurement_unit, :resource_quantity_measurement_unit_id, :resource_quantity_measurement_unit, presence: true validates :work_item_quantity, presence: true, numericality: { greater_than: 0 } validates :resource_quantity, presence: true, numericality: { greater_than: 0 } end end end
Version data entries
16 entries across 16 versions & 1 rubygems