I have a User model where there is an email address with user@domain.com

What I'd like to do is to be able to update all the users in the system to change their domain name from @domain.com to @newdomain.com

Is there some way I can run a command (update\_all) or something like that which would look for just the end portion (@domain.com) and change it for all records to @newdomain.com?

If I have to do it one by one via the console or Rails\_Admin I will, just hoped there was a way to do this programatically.