Sha256: 7d28d994467aaf546465a59f0c59978baa0082ba1d22f38df9022a0b9fb476ef

Contents?: true

Size: 230 Bytes

Versions: 207

Compression:

Stored size: 230 Bytes

Contents

module Comee
  module Core
    class Inventory < ApplicationRecord
      belongs_to :product

      validates :hash_code, presence: true
      validates :quantity, presence: true, numericality: {greater_than: 0}
    end
  end
end

Version data entries

207 entries across 207 versions & 1 rubygems

Version Path
comee_core-0.3.62 app/models/comee/core/inventory.rb
comee_core-0.3.61 app/models/comee/core/inventory.rb
comee_core-0.3.60 app/models/comee/core/inventory.rb
comee_core-0.3.59 app/models/comee/core/inventory.rb
comee_core-0.3.58 app/models/comee/core/inventory.rb
comee_core-0.3.57 app/models/comee/core/inventory.rb
comee_core-0.3.56 app/models/comee/core/inventory.rb
comee_core-0.3.55 app/models/comee/core/inventory.rb
comee_core-0.3.54 app/models/comee/core/inventory.rb
comee_core-0.3.53 app/models/comee/core/inventory.rb
comee_core-0.3.51 app/models/comee/core/inventory.rb
comee_core-0.3.50 app/models/comee/core/inventory.rb
comee_core-0.3.49 app/models/comee/core/inventory.rb
comee_core-0.3.48 app/models/comee/core/inventory.rb
comee_core-0.3.47 app/models/comee/core/inventory.rb
comee_core-0.3.46 app/models/comee/core/inventory.rb
comee_core-0.3.45 app/models/comee/core/inventory.rb
comee_core-0.3.44 app/models/comee/core/inventory.rb
comee_core-0.3.43 app/models/comee/core/inventory.rb
comee_core-0.3.42 app/models/comee/core/inventory.rb