foodsoft/app/models/stock_event.rb

7 lines
171 B
Ruby
Raw Permalink Normal View History

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