Delete User Record from DB using Sorcery in Rails

102 views Asked by At

How would one go about deleting a user from an active Rails application in production when one used Sorcery for authentication? User registration is controlled from a central point, so it would just be best to delete the user record in the database.

The app is deployed to Heroku.

1

There are 1 answers

0
palkan On BEST ANSWER

Nothing special, just delete user, smth like: User.find(id).destroy!.