Sha256: 712c506dd2b8d47569a9f47f1d41ecf37be1090aaf48965604663077da4dc7e8

Contents?: true

Size: 238 Bytes

Versions: 5

Compression:

Stored size: 238 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
ecom_model-2.0.4 app/models/ecom/model/product_type.rb
ecom_model-2.0.3 app/models/ecom/model/product_type.rb
ecom_model-2.0.2 app/models/ecom/model/product_type.rb
ecom_model-2.0.1 app/models/ecom/model/product_type.rb
ecom_model-2.0.0 app/models/ecom/model/product_type.rb