I have a Rails application that lets Users create various "judgements", everything is a bit interweaved, we have several classes that are connected to the User class.
When I let users "destroy" their account, obviously the associations they had will give me a nil
object. So, for example, when I traverse all judgements, I can't get the user that created the judgement if this particular user deleted (destroyed) their account.
- What are the best practices in Rails for such cases?
- Is it considered okay to flag a user as inactive, but still keep their account?
- Could I delete the User account and replace the associated information in other classes?