or username. user = User.where(id: 1).first. or It's important that you change both password and password_confirmation to make it work. Don't forget to save the changes. user.save! Exit the console and try to login with your new password..