Sha256: 703b4220ad624aaccfa2bc65835eb57174059a053955f8d5b1d784c586ae5f7a

Contents?: true

Size: 306 Bytes

Versions: 71

Compression:

Stored size: 306 Bytes

Contents

module Ecom
  module Core
    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

71 entries across 71 versions & 1 rubygems

Version Path
ecom_core-1.1.4 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.3 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.2 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.1 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.0 app/models/ecom/core/work_component_template.rb
ecom_core-1.0.25 app/models/ecom/core/work_component_template.rb
ecom_core-1.0.24 app/models/ecom/core/work_component_template.rb
ecom_core-1.0.23 app/models/ecom/core/work_component_template.rb
ecom_core-1.0.22 app/models/ecom/core/work_component_template.rb
ecom_core-1.0.21 app/models/ecom/core/work_component_template.rb
ecom_core-1.0.20 app/models/ecom/core/work_component_template.rb
ecom_core-1.0.19 app/models/ecom/core/work_component_template.rb
ecom_core-1.0.18 app/models/ecom/core/work_component_template.rb
ecom_core-1.0.17 app/models/ecom/core/work_component_template.rb
ecom_core-1.0.16 app/models/ecom/core/work_component_template.rb
ecom_core-1.0.15 app/models/ecom/core/work_component_template.rb
ecom_core-1.0.14 app/models/ecom/core/work_component_template.rb
ecom_core-1.0.13 app/models/ecom/core/work_component_template.rb
ecom_core-1.0.12 app/models/ecom/core/work_component_template.rb
ecom_core-1.0.11 app/models/ecom/core/work_component_template.rb