Trust level changes while automatic groups do not change

Thanks for the answer,

there’s one single concern about the locked trust level:

if one change the trust level via rails console, then some of the users may get locked during the process, and you can’t understand it unless you check the user profiles in admin panel one by one.

is there any command to unlock bulk trust levels via rails console?