PeterHamilton/citier — Issue #51: :counter_cache => true support
Author: Axsuul
Created: 2012-01-09 13:11:51+00:00
State: open

I'm trying to enable counter cache for a citier model's association like so

```ruby
class Comment
belongs_to :media, :counter_cache => true
end
```

and also adding a `comments_count` column for the root model `Media`. However, there doesn't seem to be support for the counter cache since I'm getting thrown this error

```
ActiveRecord::StatementInvalid: PGError: ERROR: cannot update a view
HINT: You need an unconditional ON UPDATE DO INSTEAD rule.
```

Anyone know of a workaround?