Sha256: 8e9ba9f174cee8a94a6c3d8fb1c2669183c2f8ad023bb043fe693b1e490ea7e9

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

module Jobshop
  class OrderLine < ApplicationRecord
    self.primary_keys = [ :organization_id, :order_id, :order_line_id]

    belongs_to :organization
    belongs_to :created_by, class_name: "Jobshop::User",
      foreign_key: [ :organization_id, :created_by_id ]
    belongs_to :order, inverse_of: :order_lines,
      foreign_key: [ :organization_id, :order_id ]
    belongs_to :product,
      foreign_key: [ :organization_id, :product_id ]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jobshop-0.0.157 app/models/jobshop/order_line.rb