Challenge (deactivating):
Having a social media type application in Rails 4 using Devise. Im looking for a good way to delete users from the system. Since Facebook allows users to reactivate there accounts I have now implemented this feature with a
user.deactivated
boolean, thus not actually deleting records from the database.
Delete users that have not confirmed
Using a rake task I now be able to filter all users that have not confirmed there account for 7 days, These users I would like to really remove from the database. Since users cannot do anything on my application without confirming, I consider them "lost" registrations.
I wonder what would be the best strategy to delete these users in a real removal from the database?
Since each user has its own profile/account what would be the best way to delete everything from the system? Im using:
belongs_to :user, :dependent => :destroy
In profile/account models so the deleting the user from database should delete all there other relations. Is this best way to go? Any things to take into consideration that would break the system?