1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-28 22:54:18 +01:00
fab-manager/app/models/product.rb
2022-08-23 16:02:08 +02:00

11 lines
286 B
Ruby

# frozen_string_literal: true
# Product is a model for the merchandise hold information of product in store
class Product < ApplicationRecord
belongs_to :product_category
has_and_belongs_to_many :machines
validates_numericality_of :amount, greater_than: 0, allow_nil: true
end