1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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
This commit is contained in:
Jeremy Kemper 2008-01-28 18:45:12 +00:00
parent aecb7fbefc
commit 859ca3a1ea

View file

@ -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;