How to drop a production database in Rails 5

I encountered a problem when dropping a production database. Here's the solution

Set the same password for all users in one query

Reset devise passwords quickly, even for thousands of users.