PaperTrail v13.0.0 Release Notes

Release Date: 2022-08-15 // over 1 year ago
  • ๐Ÿ’ฅ Breaking Changes

    • 0๏ธโƒฃ The default serializer will now use YAML.safe_load unless ActiveRecord.use_yaml_unsafe_load. This change only affects users whose versions table has object or object_changes columns of type text, and who use the YAML serializer. People who use the JSON serializer, or those with json(b) columns, are unaffected. Please see [doc/pt_13_yaml_safe_load.md](doc/pt_13_yaml_safe_load.md) for details.

    โž• Added

    • None

    ๐Ÿ›  Fixed

    • None

Previous changes from v12.3.0

  • ๐Ÿ’ฅ Breaking Changes

    • None

    โž• Added

    • #1371 - Added in_after_callback argument to PaperTrail::RecordTrail#save_with_version, to allow the caller to indicate if this method is being called during an after callback. Defaults to false.
    • #1374 - Added option --uuid when generating new migration. This can be used to set the type of item_id column to uuid for use with paper_trail on a database that uses uuid as primary key.

    ๐Ÿ›  Fixed

    • #1373 - Add CLI option to use uuid type for item_id when generating migration.
    • #1376 - Create a version record when associated object is touched. Restores the behavior of PaperTrail < v12.1.0.