1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-26 20:54:21 +01:00
fab-manager/app/models/product.rb

11 lines
286 B
Ruby
Raw Normal View History

2022-07-22 18:48:28 +02:00
# frozen_string_literal: true
# Product is a model for the merchandise hold information of product in store
2022-07-13 15:06:46 +02:00
class Product < ApplicationRecord
belongs_to :product_category
2022-07-22 18:48:28 +02:00
has_and_belongs_to_many :machines
validates_numericality_of :amount, greater_than: 0, allow_nil: true
2022-07-13 15:06:46 +02:00
end