aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/order.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/order.rb')
-rw-r--r--activerecord/test/models/order.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/models/order.rb b/activerecord/test/models/order.rb
new file mode 100644
index 0000000000..36866b398f
--- /dev/null
+++ b/activerecord/test/models/order.rb
@@ -0,0 +1,6 @@
+# frozen_string_literal: true
+
+class Order < ActiveRecord::Base
+ belongs_to :billing, class_name: "Customer", foreign_key: "billing_customer_id"
+ belongs_to :shipping, class_name: "Customer", foreign_key: "shipping_customer_id"
+end