Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
robertlagrant
on July 19, 2022
|
parent
|
context
|
favorite
| on:
Soft deletion probably isn't worth it
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.
jwarden
on July 20, 2022
|
next
[–]
Forgetting to include the lifecycle column in your query may mean not understanding what question you are trying to answer with your query.
dubswithus
on July 20, 2022
|
prev
[–]
There are some Rails gems that take care of this by scoping associations (that also have the deleted_at column).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: