From c48f744400844e4c73eb91c83d86c3e915a9d78b Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Sat, 26 Jan 2008 06:23:03 +0000 Subject: Make sure that belongs_to counter decrements when assigning nil Closes #10804 [jeanmartin] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/schema/schema.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/test/schema/schema.rb') diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 307ad8b935..44bbb48773 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -154,6 +154,7 @@ ActiveRecord::Schema.define do t.string :title, :null => false t.text :body, :null => false t.string :type + t.integer :comments_count, :default => 0 end create_table :projects, :force => true do |t| -- cgit v1.2.3