Hi,
I’ve added a counter cache column to a model. When I load my models
through fixtures, it doesn’t seem to affect the counter.
regards,
C.
Hi,
I’ve added a counter cache column to a model. When I load my models
through fixtures, it doesn’t seem to affect the counter.
regards,
C.
On May 25, 9:25 am, coriordan [email protected] wrote:
Hi,
I’ve added a counter cache column to a model. When I load my models
through fixtures, it doesn’t seem to affect the counter.
That’s not handled magically for you (mainly because the counter cache
only gets updated via callbacks whereas fixtures are just plopped
straight in the database).
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs