aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-09-22 14:23:40 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-09-22 14:23:40 -0300
commitb61a2db8d07146518c89bbf49176b093771af6d4 (patch)
tree76f386682896d1c822dc86c5cac87eded37830e3 /activerecord/test/models
parent585e75696b31395aee895e5366e331c07c3f5ee1 (diff)
parentc36ca0547f41373fa3cd474722bc51e5446a1630 (diff)
downloadrails-b61a2db8d07146518c89bbf49176b093771af6d4.tar.gz
rails-b61a2db8d07146518c89bbf49176b093771af6d4.tar.bz2
rails-b61a2db8d07146518c89bbf49176b093771af6d4.zip
Merge pull request #17009 from arthurnn/foreign_key_symbols
Fixtures using Foreign key symbols
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/parrot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/parrot.rb b/activerecord/test/models/parrot.rb
index e76e83f314..8c83de573f 100644
--- a/activerecord/test/models/parrot.rb
+++ b/activerecord/test/models/parrot.rb
@@ -19,7 +19,7 @@ class LiveParrot < Parrot
end
class DeadParrot < Parrot
- belongs_to :killer, :class_name => 'Pirate'
+ belongs_to :killer, :class_name => 'Pirate', foreign_key: :killer_id
end
class FunkyParrot < Parrot