foodsoft/app/models/stock_event.rb
2021-03-02 09:12:19 +01:00

6 lines
171 B
Ruby

class StockEvent < ApplicationRecord
has_many :stock_changes, dependent: :destroy
has_many :stock_articles, through: :stock_changes
validates_presence_of :date
end