List of users with locked trust level due to group membership?

I believe this should do it. (be sure to backup your instance before running it)

User.where(trust_level_locked: true).update_all(trust_level_locked: false)

Edit:
Well, duh! You could simplify this to (as no user should have a locked TL)

User.update_all(trust_level_locked: false)
5 Likes