From 5c50df27cf1a81cd8ace5cad83bc7acee61311da Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 12 Dec 2004 18:12:57 +0000 Subject: Attempted to capture #286 in a unit test, but couldnt get it to fail git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@132 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 55c94e9e88..60022aa46b 100755 --- a/activerecord/test/fixtures/topic.rb +++ b/activerecord/test/fixtures/topic.rb @@ -1,5 +1,5 @@ class Topic < ActiveRecord::Base - has_many :replies, :foreign_key => "parent_id" + has_many :replies, :dependent => true, :foreign_key => "parent_id" serialize :content before_create :default_written_on -- cgit v1.2.3