Sometimes I need delete some data in rails:
Post.where(id: [123, 321]).delete_all
And I need backup the data in case something went wrong.
Is there any Gems or Code help me to do this? It should export to YAML file, backup all the data destroyed, and easy revert(import data again).
I already done the database level backup. what I need is model/object level backup.