Hot to change password manually with Rails and Devise

Changing password for a user does not require a manual update for the related fields.

user = User.find(1)
user.update!(password: "new password")


Somewhat related: