aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/matey.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/fixtures/matey.rb')
-rw-r--r--activerecord/test/fixtures/matey.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/matey.rb b/activerecord/test/fixtures/matey.rb
new file mode 100644
index 0000000000..86442e0470
--- /dev/null
+++ b/activerecord/test/fixtures/matey.rb
@@ -0,0 +1,4 @@
+class Matey < ActiveRecord::Base
+ belongs_to :pirate
+ belongs_to :target, :class_name => 'Pirate', :foreign_key => 'target_id'
+end