Soft deletion with Ecto (opens in new tab)
From keathley.github.io: A common need in web applications is to “undo” a deletion event. This is referred to as a soft-deletion. The record still exists but its hidden from the user. Soft deleting allows the user to restore that data in the event that they need it in the future.
Read the original article