Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当使用 Sorcery 进行身份验证时,如何从生产中的活动 Rails 应用程序中删除用户?用户注册是从一个中心点控制的,因此最好删除数据库中的用户记录。
该应用程序已部署到 Heroku。
没什么特别的,只是删除用户,smth like: User.find(id).destroy!.
User.find(id).destroy!