News for hackers. Stuff that matters.
Re:Soft deletion probably isn't worth it by robertlagrant on Tuesday July 19, 2022 @06:21PM (#32158751)
That still has the same issues. You have to remember to set every linked table's records to the same state, or remember to query every linked table through the table that has the lifecycle column on it.
Re:Soft deletion probably isn't worth it by jwarden on Tuesday July 19, 2022 @08:07PM (#32159629)
Forgetting to include the lifecycle column in your query may mean not understanding what question you are trying to answer with your query.
Re:Soft deletion probably isn't worth it by dubswithus on Tuesday July 19, 2022 @09:36PM (#32160270)
There are some Rails gems that take care of this by scoping associations (that also have the deleted_at column).