Sha256: 8f1ca6bd827eb81c4a9938b7fa993fd5efc1c2e2b38adbdaf493a1693f373297

Contents?: true

Size: 255 Bytes

Versions: 106

Compression:

Stored size: 255 Bytes

Contents

module Ecom
  module Core
    class ResourceType < ApplicationRecord
      validates :code, :name, :base_unit, :type, presence: true
      validates :code, uniqueness: { scope: :type }
      validates :name, uniqueness: { scope: :type }
    end
  end
end

Version data entries

106 entries across 106 versions & 1 rubygems

Version Path
ecom_core-1.1.19 app/models/ecom/core/resource_type.rb
ecom_core-1.1.18 app/models/ecom/core/resource_type.rb
ecom_core-1.1.17 app/models/ecom/core/resource_type.rb
ecom_core-1.1.16 app/models/ecom/core/resource_type.rb
ecom_core-1.1.15 app/models/ecom/core/resource_type.rb
ecom_core-1.1.14 app/models/ecom/core/resource_type.rb
ecom_core-1.1.13 app/models/ecom/core/resource_type.rb
ecom_core-1.1.12 app/models/ecom/core/resource_type.rb
ecom_core-1.1.11 app/models/ecom/core/resource_type.rb
ecom_core-1.1.10 app/models/ecom/core/resource_type.rb
ecom_core-1.1.9 app/models/ecom/core/resource_type.rb
ecom_core-1.1.8 app/models/ecom/core/resource_type.rb
ecom_core-1.1.7 app/models/ecom/core/resource_type.rb
ecom_core-1.1.6 app/models/ecom/core/resource_type.rb
ecom_core-1.1.5 app/models/ecom/core/resource_type.rb
ecom_core-1.1.4 app/models/ecom/core/resource_type.rb
ecom_core-1.1.3 app/models/ecom/core/resource_type.rb
ecom_core-1.1.2 app/models/ecom/core/resource_type.rb
ecom_core-1.1.1 app/models/ecom/core/resource_type.rb
ecom_core-1.1.0 app/models/ecom/core/resource_type.rb