All Versions
55
Latest Version
Avg Release Cycle
36 days
Latest Release
110 days ago

Changelog History
Page 1

  • v10.3.1

    July 31, 2019

    💥 Breaking Changes

    • None

    ➕ Added

    • None

    🛠 Fixed

    • None

    Dependencies

    • #1213 - Allow contributors to install incompatible versions of ActiveRecord. See discussion in paper_trail/compatibility.rb
  • v10.3.0

    April 09, 2019

    💥 Breaking Changes

    • None

    ➕ Added

    • #1194 - Added a 'limit' option to has_paper_trail, allowing models to override the global PaperTrail.config.version_limit setting.

    🛠 Fixed

    • #1196 - In the installation migration, change versions.item_id from 4 byte integer to 8 bytes (bigint).
  • v10.2.1

    March 14, 2019

    💥 Breaking Changes

    • None

    ➕ Added

    • None

    🛠 Fixed

    • #1184 - No need to calculate previous values of skipped attributes
    • #1188 - Optimized the memory allocations during the building of every particular Version object. That can help a lot for heavy bulk processing. In additional we advise to use json[b] DB types for object and object_changes Version columns, in order to reach best possible RAM performance.
  • v10.2.0

    January 31, 2019

    💥 Breaking Changes

    • None

    ➕ Added

    • 👌 Support ruby 2.6.0
    • #1182 - Support rails 6.0.0.beta1

    🛠 Fixed

    • #1177 - Do not store ignored and skipped attributes in object_changes on destroy.

    🗄 Deprecated

    • #1176 - config.paper_trail.enabled
  • v10.1.0

    December 04, 2018

    💥 Breaking Changes

    • None

    🗄 Deprecated

    • #1158 - Passing association name as versions: option or Version class name as class_name: options directly to has_paper_trail. Use has_paper_trail versions: {name: :my_name, class_name: "MyVersionModel"} instead.

    ➕ Added

    • #1166 - New global option has_paper_trail_defaults, defaults for has_paper_trail
    • #1158 — Add the ability to pass options, such as scope or extend: to the has_many :versions association macro.
    • #1172 - Support rails 6.0.0.alpha

    🛠 Fixed

    • None
  • v10.0.1

    September 01, 2018

    💥 Breaking Changes

    • None

    ➕ Added

    • None

    🛠 Fixed

    • #1150 - When PT-AT is not loaded, and someone sets track_associations = false, it should warn, not raise.
  • v10.0.0

    September 01, 2018

    🛠 PT 10 tackles some tough issues that required breaking changes. We fixed a rare issue with STI, and saved major disk space in databases with tens of millions of version records. Special thanks to @lorint and @seanlinsley, respectively.

    💥 Breaking changes affecting most people

    • 🚚 #1132 - Removed a dozen methods deprecated in PT 9. Make sure you've addressed all deprecation warnings before upgrading.

    💥 Breaking changes affecting fewer people

    • db9c392d - paper_trail-association_tracking is no longer a runtime dependency. If you use it (track_associations = true) you must now add it to your own Gemfile. See also PT-AT #7
    • #1130 - Removed save_changes. For those wanting to save space, it's more effective to drop the object column. If you need ultimate control over the object_changes column, you can write your own object_changes_adapter.

    💥 Breaking changes most people won't care about

    • #1121 - touch now always inserts null in object_changes.
    • #1123 - object_changes is now populated on destroy in order to make where_object_changes usable when you've dropped the object column. Sean is working on an optional backport migration and will post about it in #1099 when he's done.

    ➕ Added

    • #1099 - Ability to save ~50% storage space by making the object column optional. Note that this disables reify and where_object.

    🛠 Fixed

    • #594 - A rare issue with reification of STI subclasses, affecting only PT-AT users who have a model with mutliple associations, whose foreign keys are named the same, and whose foreign models are STI with the same parent class. This fix requires a schema change. See docs section 4.b.1 The optional item_subtype column for instructions.
  • v9.2.0

    June 09, 2018

    💥 Breaking Changes

    • None

    ➕ Added

    • #1070 - The experimental associations tracking feature has been moved to a separate gem, paper_trail-association_tracking. PT will, for now, have a runtime dependency on this new gem. So, assuming the gem extraction goes well, no breaking changes are anticipated.
    • #1093 - PaperTrail.config.object_changes_adapter - Expert users can write their own adapter to control how the changes for each version are stored in the object_changes column. An example of this implementation using the hashdiff gem can be found here: paper_trail-hashdiff

    🛠 Fixed

    • None
  • v9.1.1

    May 30, 2018

    💥 Breaking Changes

    • None

    ➕ Added

    • None

    🛠 Fixed

    • #1098 - Fix regression in 9.1.0 re: generator --with-associations
  • v9.1.0

    May 23, 2018

    💥 Breaking Changes

    • None

    ➕ Added

    • #1091 - PaperTrail.config.association_reify_error_behaviour - For users of the experimental association tracking feature. Starting with PT 9.0.0, reification of has_one associations is stricter. This option gives users some choices for how to handle the PaperTrail::Reifiers::HasOne::FoundMoreThanOne error introduced in PT 9. See README section 4.b.1. "Known Issues" for more details.

    🛠 Fixed

    • None