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.2.16 app/models/ecom/core/work_component_template.rb
ecom_core-1.2.15 app/models/ecom/core/work_component_template.rb
ecom_core-1.2.14 app/models/ecom/core/work_component_template.rb
ecom_core-1.2.13 app/models/ecom/core/work_component_template.rb
ecom_core-1.2.12 app/models/ecom/core/work_component_template.rb
ecom_core-1.2.11 app/models/ecom/core/work_component_template.rb
ecom_core-1.2.10 app/models/ecom/core/work_component_template.rb
ecom_core-1.2.9 app/models/ecom/core/work_component_template.rb
ecom_core-1.2.7 app/models/ecom/core/work_component_template.rb
ecom_core-1.2.6 app/models/ecom/core/work_component_template.rb
ecom_core-1.2.5 app/models/ecom/core/work_component_template.rb
ecom_core-1.2.4 app/models/ecom/core/work_component_template.rb
ecom_core-1.2.3 app/models/ecom/core/work_component_template.rb
ecom_core-1.2.2 app/models/ecom/core/work_component_template.rb
ecom_core-1.2.1 app/models/ecom/core/work_component_template.rb
ecom_core-1.2.0 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.28 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.27 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.26 app/models/ecom/core/work_component_template.rb
ecom_core-1.1.25 app/models/ecom/core/work_component_template.rb