Users are receiving emails even when everything is set up to not send email notifications

Just in case anyone needs this. I don’t know anything about ruby and seems that old topics in this forum are outdated.

Currently, the psql query to properly reset those option for every single user is:

UPDATE user_options SET email_messages_level = 2, email_level = 2, email_previous_replies = 2;