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:
parent
aecb7fbefc
commit
859ca3a1ea
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue