Update_all without callbacks

How do I stop callbacks when using Model.update_all? Or stop it for
certain columns?

From the API docs for update_all :
“It does not instantiate the involved models and it does NOT trigger
Active Record callbacks”

Hope this helps!
Simon

Simon wrote:

From the API docs for update_all :
“It does not instantiate the involved models and it does NOT trigger
Active Record callbacks”

Hope this helps!
Simon

It still seems to run before_save.

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