aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-07-12 00:04:01 +0100
committerJon Leighton <j@jonathanleighton.com>2011-07-12 00:14:45 +0100
commit1712d90050bd4b32a9ee93548b5eef05a69491f7 (patch)
treecf76c0d1847f96d8f71c30f10c741d46dbe6f4b1 /activerecord/test/schema
parent5c8be9eb864886d7ba9abba0d59786614cca2a5a (diff)
downloadrails-1712d90050bd4b32a9ee93548b5eef05a69491f7.tar.gz
rails-1712d90050bd4b32a9ee93548b5eef05a69491f7.tar.bz2
rails-1712d90050bd4b32a9ee93548b5eef05a69491f7.zip
Fix exception if old and new targets are both nil. Fixes #1471.
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index e6cd274586..64e0452100 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -155,6 +155,7 @@ ActiveRecord::Schema.define do
end
t.string :type
t.integer :taggings_count, :default => 0
+ t.integer :children_count, :default => 0
end
create_table :companies, :force => true do |t|