I have a simple problem. I want to change some field value for my User.find(1)
in rails console.
I tried:
u = User.find(1)
u.update_attributes(roles_mask: 3)
And got false
returned. When I check u.errors.full_messages
, I see that it's because there is a problem with password validation from has_secure_password
. How can I update it manually in the console?