aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/parrot.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/parrot.rb')
-rw-r--r--activerecord/test/models/parrot.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/models/parrot.rb b/activerecord/test/models/parrot.rb
index 737ef9131b..c4ee2bd19d 100644
--- a/activerecord/test/models/parrot.rb
+++ b/activerecord/test/models/parrot.rb
@@ -1,5 +1,6 @@
class Parrot < ActiveRecord::Base
- set_inheritance_column :parrot_sti_class
+ self.inheritance_column = :parrot_sti_class
+
has_and_belongs_to_many :pirates
has_and_belongs_to_many :treasures
has_many :loots, :as => :looter