I’m looking for ways to replace “has_many … counter_sql: ‘…’” in
to migrate an app from Rails 3.2 to 4.0 (done) and then up to 4.1 which
dropped support for “counter_sql”. An example is on Stackoverflow:
I’d do it with a separate counter method, but it doesn’t feel like the
Thanks for your hints!