Proper Counter Cache Migrations in Rails
The interweb is currently filled with some poor advice about how to seed a counter cache column via an ActiveRecord migration. This article explains how plain SQL will make your migrations more straightforward and your next deployment run faster.
Post a comment