Sha256: e0cdd58768425114a1518f3bb3420bb3b3dcc3839eacee1999dbe7cbfa7bd468
Contents?: true
Size: 512 Bytes
Versions: 2
Compression:
Stored size: 512 Bytes
Contents
# frozen_string_literal: true class Order < ActiveRecord::Base unless ENV["SKIP_COMPOSITE_PK"] if ENV['AR_VERSION'].to_f <= 7.0 belongs_to :customer, inverse_of: :orders, primary_key: %i(account_id id), foreign_key: %i(account_id customer_id) else belongs_to :customer, inverse_of: :orders, primary_key: %i(account_id id), query_constraints: %i(account_id customer_id) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activerecord-import-1.8.1 | test/models/order.rb |
activerecord-import-1.8.0 | test/models/order.rb |