From 859ca3a1ea23684c02c39de057e1810b05bd6a46 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 28 Jan 2008 18:45:12 +0000 Subject: [PATCH] Add posts.comments_count for other databases. Closes #10804. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8745 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/schema/schema.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 44bbb48773..bdf128aecc 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -208,6 +208,8 @@ ActiveRecord::Schema.define do add FOREIGN KEY (`fk_id`) REFERENCES `fk_test_has_pk`(`id`)' + else + add_column :posts, :comments_count, :integer, :default => 0 end # For Firebird, set the sequence values 10000 when create_table is called;