How to update and unlock all groups?

Use

Group.last

To see what the group model looks like. Or Group.find_by_slug("some_slug") to look at a specific one. You can look at one that’s changed and one that’s not.

You can then do Group.all.update_all(field: value) to set them all.