All Versions
59
Latest Version
Avg Release Cycle
64 days
Latest Release
56 days ago

Changelog History
Page 1

  • v12.1.0 Changes

    August 30, 2021

    💥 Breaking Changes

    • None

    ➕ Added

    • #1292 - where_attribute_changes queries for versions where the object's attribute changed to or from any values.
    • #1291 - where_object_changes_to queries for versions where the object's attributes changed to one set of known values from any other set of values.

    🛠 Fixed

    • #1285 - For ActiveRecord >= 6.0, the touch callback will no longer create a new Version for skipped or ignored attributes.
    • #1309 - Removes item_subtype requirement when specifying model-specific limits.
    • #1333 - Improve reification of STI models that use find_sti_class/sti_class_for to customize single table inheritance.
  • v12.0.0 Changes

    March 29, 2021

    💥 Breaking Changes

    • 🚅 #1281 Rails: Instead of an Engine, PT now provides a Railtie, which is simpler. This was not expected to be a breaking change, but has caused trouble for some people:
    • 🔧 Rails: The deprecated config.paper_trail configuration technique has been removed. This configuration object was deprecated in 10.2.0. It only had one key, config.paper_trail.enabled. Please review docs section 2.d. Turning PaperTrail Off for alternatives.

    ➕ Added

    • where_object_changes_from queries for versions where the object's attributes changed from one set of known values to any other set of values.

    🛠 Fixed

    • Expand kwargs passed to save_with_version using double splat operator - Rails 6.1 compatibility
    • 🚅 #1287 - Fix 'rails db:migrate' error when run against an app with mysql2 adapter

    Dependencies

    • ⬇️ Drop support for ruby 2.4 (reached EoL on 2020-03-31)
  • v11.1.0 Changes

    December 16, 2020

    💥 Breaking Changes

    • None

    ➕ Added

    • #1272 - Rails 6.1 compatibility

    🛠 Fixed

    • None
  • v11.0.0 Changes

    August 24, 2020

    💥 Breaking Changes

    • #1221 If you use the experimental association-tracking feature, and you forget to install the paper_trail-association_tracking gem, then, when you call track_associations= you will get a NoMethodError instead of the previous detailed error. Normally the removal of such a temporary warning would not be treated as a breaking change, but since this relates to PT-AT, it seemed warranted.
    • VersionConcern#sibling_versions is now private, and its arity has changed.

    ➕ Added

    • None

    🛠 Fixed

    • #1242 - Generator make wrong migration for Oracle database

    • #1238 - Query optimization in reify

    • #1256 - Skip version for timestamp when changed attributed is ignored via Hash

    Dependencies

  • v10.3.1 Changes

    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 Changes

    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 Changes

    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 Changes

    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 Changes

    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 Changes

    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.