• Delete User Account but Retain User Data (Soft Delete)
  • 1. Add deleted_at column to Users
  • 2. Override the delete route in config/routes.rb
  • 3. Override users/registrations#destroy in registrations controller
  • 4. Update the user model with soft_delete method & check if user is active when authenticating
  • 5. Add custom error message when trying to login with a deleted account.