I need to use the counter-cache functionality in my model.
I defined as stated the counter-cache => true; on the belongs_to side
and a xxx_count column on the has_many side.
In my database this column is now 0.
How can I ‘repair’ the count… as obviously it should be equal to the
number of items already stored on the many side… ?
should I write a procedure ? a specific action in my app ?
btw : the table on the one side is 38’000 items… which exclude doing
it by-hand !