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.31 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.30 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.29 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.28 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.27 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.26 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.25 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.24 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.23 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.22 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.21 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.20 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.19 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.18 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.17 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.16 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.15 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.14 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.13 app/models/ecom/core/equipment_category.rb
ecom_core-1.2.12 app/models/ecom/core/equipment_category.rb