Active Record Migration Confusion

In the Active Record Migration documentation, an example is given in “6 Using Models in Your Migrations” in which Alice should have created a local model in order to bypass the validations run when executing Product.update_all. However, update_all should skip validations according to the Active Record Validations guide. Is the example given in the Active Record Migration guide wrong?

In the Active Record Migration documentation, an example is given in "6

Using Models in Your Migrations<http://guides.rubyonrails.org/migrations.html#using-models-in-your-migrations>"
in which Alice should have created a local model in order to bypass the
validations run when executing Product.update_all. However, update_all
should skip validations according to the Active Record Validations guide<http://guides.rubyonrails.org/active_record_validations.html#skipping-validations>.
Is the example given in the Active Record Migration guide wrong?

Good catch, yeah the example is wrong.

I believe we would need to find a different example to illustrate that
gotcha.

While we could turn the update_all call into a loop and put a note that
says we do it for illustration purposes, if the point you are making
depends precisely on artificial code that undermines it in my view. If the
problem you are explaining is real, you should find a real example using
idiomatic code that depicts it.