From 605bc77533cf3b6700e91eda8994cdf6b82341cc Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 14 Dec 2004 12:32:29 +0000 Subject: Added a better exception for when a type column is used in a table without the intention of triggering single-table inheritance. Added that single-table inheritance will only kick in if the inheritance_column (by default "type") is present. Otherwise, inheritance wont have any magic side effects git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/topic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test/fixtures/topic.rb') diff --git a/activerecord/test/fixtures/topic.rb b/activerecord/test/fixtures/topic.rb index 60022aa46b..4c46122450 100755 --- a/activerecord/test/fixtures/topic.rb +++ b/activerecord/test/fixtures/topic.rb @@ -3,7 +3,7 @@ class Topic < ActiveRecord::Base serialize :content before_create :default_written_on - before_destroy :destroy_children #'self.class.delete_all "parent_id = #{id}"' + before_destroy :destroy_children def parent self.class.find(parent_id) -- cgit v1.2.3