Sha256: c30c43c52fb5105da449b3bdad1f93ebb2ea4693f04852e7bb1f3d6f7c1f31c9

Contents?: true

Size: 307 Bytes

Versions: 5

Compression:

Stored size: 307 Bytes

Contents

module Ecom
  module Model
    class WorkComponentTemplate < ApplicationRecord
      belongs_to :work_product_template
      belongs_to :task_template

      validates :code, :name, presence: true
      validates :code, uniqueness: { scope: %i[work_product_template_id task_template_id] }
    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_template.rb
ecom_model-2.0.3 app/models/ecom/model/work_component_template.rb
ecom_model-2.0.2 app/models/ecom/model/work_component_template.rb
ecom_model-2.0.1 app/models/ecom/model/work_component_template.rb
ecom_model-2.0.0 app/models/ecom/model/work_component_template.rb