Open jrsaunde opened 10 years ago
sequel-paranoid could give us an easy way to do this. In paranoid mode, rows are marked as deleted instead of actually deleted.
This would make queries a bit ungaingly, so another option might be to just encode the whole model-to-be-deleted into json and store it as a blob in another table. This one would work pretty fantastically on postgres, since it supports json indexing natively as of 9.3.
Might want to keep track of old entries in the DB, for instance, if someone deletes it from the app but not from dashboard, it will continue to send data.
There is a logger info message, but only on the CLI.
Need to either rework the delete button to not really delete (more data overhead as we keep a row of each test ever) or add messaging to tests still pushing data (but then we lose the info from the row in the db)