class InvoiceProduct < ApplicationRecord
belongs_to :invoice, inverse_of: :invoice_products
belongs_to :product
validates_presence_of :invoice
end