One admin can't revoke another admin

I have removed myself from DISCOURSE_DEVELOPER_EMAILS, then the UI did not provide “Revoke admin” for myself. I find this problematic that an admin cannot step down.

So I went to the console and ran in the rails console:

u = User.find(1)
u.admin = false
u.save

Is this correct?

I found that I could still post in the Staff category. So I added:

u.revoke_admin!

And now I’m a normal user. :partying_face: