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.24 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.23 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.22 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.21 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.20 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.19 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.18 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.17 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.16 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.15 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.14 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.13 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.12 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.11 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.10 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.9 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.8 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.7 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.6 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.5 app/models/ecom/core/work_component_template.rb