Sha256: 373e59f8f2746899d5acabae34a95b0a4faf3c4a0383f02c5591b740857830ce

Contents?: true

Size: 237 Bytes

Versions: 106

Compression:

Stored size: 237 Bytes

Contents

module Ecom
  module Core
    class ProductType < ApplicationRecord
      belongs_to :work_product_template

      validates :name, presence: true
      validates :name, uniqueness: { scope: :work_product_template_id }
    end
  end
end

Version data entries

106 entries across 106 versions & 1 rubygems

Version Path
ecom_core-1.0.25 app/models/ecom/core/product_type.rb
ecom_core-1.0.24 app/models/ecom/core/product_type.rb
ecom_core-1.0.23 app/models/ecom/core/product_type.rb
ecom_core-1.0.22 app/models/ecom/core/product_type.rb
ecom_core-1.0.21 app/models/ecom/core/product_type.rb
ecom_core-1.0.20 app/models/ecom/core/product_type.rb
ecom_core-1.0.19 app/models/ecom/core/product_type.rb
ecom_core-1.0.18 app/models/ecom/core/product_type.rb
ecom_core-1.0.17 app/models/ecom/core/product_type.rb
ecom_core-1.0.16 app/models/ecom/core/product_type.rb
ecom_core-1.0.15 app/models/ecom/core/product_type.rb
ecom_core-1.0.14 app/models/ecom/core/product_type.rb
ecom_core-1.0.13 app/models/ecom/core/product_type.rb
ecom_core-1.0.12 app/models/ecom/core/product_type.rb
ecom_core-1.0.11 app/models/ecom/core/product_type.rb
ecom_core-1.0.10 app/models/ecom/core/product_type.rb
ecom_core-1.0.9 app/models/ecom/core/product_type.rb
ecom_core-1.0.8 app/models/ecom/core/product_type.rb
ecom_core-1.0.7 app/models/ecom/core/product_type.rb
ecom_core-1.0.6 app/models/ecom/core/product_type.rb