ok sorry turns out the llm gave me outdated info.
here are some commands I have tried and used.
tabulate the admin users and the value of their setting for upcoming changes:
# docker exec -it app rails r 'User.where(admin: true).each { |u| puts "#{u.id} #{u.username} #{u.user_option.enable_upcoming_change_available_notifications}" }'
-1 system true
-2 discobot true
1 AdminTeam false
for a given id - in my case 1 - flip the setting for that id:
# docker exec -it app rails r 'x=1;User.find(x).user_option.update!(enable_upcoming_change_available_notifications: !User.find(x).user_option.enable_upcoming_change_available_notifications)'
I rather prefer the one-liner from the root shell, of course one could enter docker and enter rails and then perform actions if one preferred.