summaryrefslogtreecommitdiff
path: root/app/models/order.rb
blob: 213bde9a5b82496a0f71ae4ec4ad127a249a101e (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

# Order
# public_id: string
class Order < ApplicationRecord
  belongs_to :user_account
  has_one :payment
  has_many :product_orders
  has_many :products, through: :product_orders
  accepts_nested_attributes_for :product_orders
end