Sha256: a1f4c0124c3802c9d3d5ba6b997fe89dfc39540a39dd7dd25b24eb2d018cfb0a

Contents?: true

Size: 473 Bytes

Versions: 36

Compression:

Stored size: 473 Bytes

Contents

# This migration adds the optional `object_changes` column, in which PaperTrail
# will store the `changes` diff for each update event. See the readme for
# details.
class AddObjectChangesToVersions < ActiveRecord::Migration<%= migration_version %>
  # The largest text column available in all supported RDBMS.
  # See `create_versions.rb` for details.
  TEXT_BYTES = 1_073_741_823

  def change
    add_column :versions, :object_changes, :text, limit: TEXT_BYTES
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
paper_trail-16.0.0 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-15.2.0 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/paper_trail-12.3.0/lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-15.1.0 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-15.0.0 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-14.0.0 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-13.0.0 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-12.3.0 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-12.2.0 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-12.1.0 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-12.0.0 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-11.1.0 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-11.0.0 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-10.3.1 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-10.3.0 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-10.2.1 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-10.2.0 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-10.1.0 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-10.0.1 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
paper_trail-10.0.0 lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb