Sha256: 65675dc3a7daaaed425e7bd1003b5e4ab4162674932267e28f1cf070e5c99868

Contents?: true

Size: 508 Bytes

Versions: 5

Compression:

Stored size: 508 Bytes

Contents

module Ecom
  module Model
    class WorkComponent < ApplicationRecord
      belongs_to :performer, class_name: 'Ecom::Model::User'
      belongs_to :approver, class_name: 'Ecom::Model::User'
      belongs_to :supervisor, class_name: 'Ecom::Model::User'
      belongs_to :quality_controller, class_name: 'Ecom::Model::User'
      belongs_to :work_component_template
      belongs_to :work_product

      validates :name, :assignment_status, :task_status, :percent_completed, presence: true
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecom_model-2.0.4 app/models/ecom/model/work_component.rb
ecom_model-2.0.3 app/models/ecom/model/work_component.rb
ecom_model-2.0.2 app/models/ecom/model/work_component.rb
ecom_model-2.0.1 app/models/ecom/model/work_component.rb
ecom_model-2.0.0 app/models/ecom/model/work_component.rb