counter cache

Hi,
I have two models, employees and departments, and i am using
counter_cache to count the number of employees in a department.
This works great, but employees can change their departments, and the
counter cache does not get updated to reflect this.
Is their a built in way to do this, or do i have to implement my own
before_save hook

thanks

Hi,

Please post this questions to the rubyonrails-talk list. This list is
for discussing the development of Rails itself.

Hi,

Please post this questions to the rubyonrails-talk list. This list is
for discussing the development of Rails itself.

Oh, sorry, I actually thought i did that