I’ve realized that using last_seen_at for the filter is going to suspend too many current members to fix manually, so I’d like tweak this slightly to suspend all users who are not members of a group.
My attempt with
users = User.where.not(group_id: 41, id: 1..Float::INFINITY, admin: false)
failed because
ERROR: column users.group_id does not exist
What should I use instead?