Change email address for a diaspora user from rails console

Just a tip on how to update a pod users email address if you need. In my example I need to edit production postgres DB user #5 and change their email.

cd diaspora

RAILS_ENV=production DB=postgres rails c

user = User.find_by(id: 5) = ‘’

And that is it. You can of course use this to edit other user. items where needed.

1 comment

Leave a comment

Your email address will not be published. Required fields are marked *