Sha256: 28a26806e1748019ca0d91a861b0030c0737402333fd73824539139c18781500

Contents?: true

Size: 207 Bytes

Versions: 83

Compression:

Stored size: 207 Bytes

Contents

module Ecom
  module Core
    class EquipmentCategory < ApplicationRecord
      belongs_to :equipment_type

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

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
ecom_core-1.2.11 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.10 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.9 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.7 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.6 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.5 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.4 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.3 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.2 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.1 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.0 app/models/ecom/core/equipment_category.rb
ecom_core-1.1.28 app/models/ecom/core/equipment_category.rb
ecom_core-1.1.27 app/models/ecom/core/equipment_category.rb
ecom_core-1.1.26 app/models/ecom/core/equipment_category.rb
ecom_core-1.1.25 app/models/ecom/core/equipment_category.rb
ecom_core-1.1.24 app/models/ecom/core/equipment_category.rb
ecom_core-1.1.23 app/models/ecom/core/equipment_category.rb
ecom_core-1.1.22 app/models/ecom/core/equipment_category.rb
ecom_core-1.1.21 app/models/ecom/core/equipment_category.rb
ecom_core-1.1.20 app/models/ecom/core/equipment_category.rb