PostgreSQLデータベースのユーザーのパスワードをリセットする方法

レールコンソールから:

User.find_by(username: 'gollum').update!(password: 'shiiiire!-BAGGINS!')
「いいね!」 3