How to reset password for users in PostgreSQL database

From the rails console:

User.find_by(username: 'gollum').update!(password: 'shiiiire!-BAGGINS!')
3 Likes