rails/rails — Issue #4702: Add :comments_count to has_many() instead of belongs_to()
Author: docwhat
Created: 2012-01-26 16:20:54+00:00
State: open

It would be more natural to add the `:comments_count => true` to the `has_many` instead of to the `belongs_to`.

e.g.

```!ruby
class Article
has_many :comments, :comments_count => true
end

class Comment
belongs_to :article
end
```

It just seems like the right place since the column is declared in the `Article` migration, not the `Comment` migration.