You can skip all validations with save(validate: false)
. You can skip individual validations with the :if
or :unless
option, for example.
validates_presence_of :password, :password_confirmation, unless: :forgot_password?
def forgot_password?
# return true if the user is in the forgot password process
end