diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-01-28 18:45:12 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-01-28 18:45:12 +0000 |
commit | 859ca3a1ea23684c02c39de057e1810b05bd6a46 (patch) | |
tree | 2a7cdc059576312ff7a131c93773df985f10a73a /activerecord/test | |
parent | aecb7fbefcb1471080c3ad33a4a2e8601fabb503 (diff) | |
download | rails-859ca3a1ea23684c02c39de057e1810b05bd6a46.tar.gz rails-859ca3a1ea23684c02c39de057e1810b05bd6a46.tar.bz2 rails-859ca3a1ea23684c02c39de057e1810b05bd6a46.zip |
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
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/schema/schema.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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; |