westonganger / active_snapshot

Simplified snapshots and restoration for ActiveRecord models and associations with a transparent white-box implementation
MIT License
103 stars 16 forks source link

Allow storage as serialized_json #31

Closed westonganger closed 1 year ago

westonganger commented 1 year ago

Currently we store as serialized yaml. I think it would be good to switch to serialized json as a default because JSON strings are human readable and YAML strings are not very human friendly, this is very useful for raw(er) db queries where you dont have access to parse the yaml data.

While serialized json should be the new default. We should still support yaml as well.

westonganger commented 1 year ago

It would be best to roll this functionality into #25

westonganger commented 1 year ago

This is now merged to master.

See the changelog for upgrade details, https://github.com/westonganger/active_snapshot/blob/141792a1ef176cac5fbf8e7bcae992bb8610bc7e/CHANGELOG.md?plain=1#L15

See the readme for the new configuration options, https://github.com/westonganger/active_snapshot#using-a-different-storage-format