Sha256: 9497ad57833d786b29d98ca517816ba6c1de9da4744d26b9acc1fa421c4af07d
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literals: true module Jobshop class OrderLine < ApplicationRecord self.primary_keys = %i[ organization_id order_id order_line_id ] belongs_to :organization belongs_to :created_by, class_name: "Jobshop::Person", foreign_key: %i[ organization_id created_by_id ] belongs_to :order, inverse_of: :order_lines, foreign_key: %i[ organization_id order_id ] belongs_to :product, foreign_key: %i[ organization_id product_id ] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jobshop-0.0.163 | app/models/jobshop/order_line.rb |