You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
I'm trying to enable counter cache for a citier model's association like so
and also adding a
comments_count
column for the root modelMedia
. However, there doesn't seem to be support for the counter cache since I'm getting thrown this errorAnyone know of a workaround?
The text was updated successfully, but these errors were encountered: