Update_all not changing updated_at

Hi everyone-

Model.update_all works and changes the records, but it’s not changing
the updated_at field. Am I doing something wrong or is this by
design?

Thanks,
Dino

On 2 Jul 2008, at 15:59, dino d. wrote:

Hi everyone-

Model.update_all works and changes the records, but it’s not changing
the updated_at field. Am I doing something wrong or is this by
design?

Model.update_all works at a lower level that all that stuff.

Fred

Thanks for the reply. I’m just trying to do some offline ranking, is
there a better way to do this than update_all?
Dino

On Jul 2, 11:01 am, Frederick C. [email protected]

On 2 Jul 2008, at 16:08, dino d. wrote:

Thanks for the reply. I’m just trying to do some offline ranking, is
there a better way to do this than update_all?

You could easily make your call to update_all update the updated_at
column (although it would be indiscriminate)

Fred

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs