state_machine and devise update_without_password

hello i have the following problem, i have a devise model user and state_machine when i change state “active” to "inactive"devise show me fallowing error:
Cannot transition state via :inactivate from :active (Reason(s): Password cant be blank)

I cant set password for this user, any ideia how i can fix

There’s a validation on user that says password must be present. You have a few options:

  1. Satisfy that validation.
  2. Use save(validate: false) when you are saving to skip all validations.
  3. Make the validation conditional on something.