Sha256: b6e2c0e4eb65924d7e0081b492c3f9ff157ed4249363de718d3a8be5eb6831be

Contents?: true

Size: 449 Bytes

Versions: 77

Compression:

Stored size: 449 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
  # 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

77 entries across 76 versions & 3 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/paper_trail-7.0.2/lib/generators/paper_trail/templates/add_object_changes_to_versions.rb.erb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/paper_trail-5.2.3/lib/generators/paper_trail/templates/add_object_changes_to_versions.rb
paper_trail-7.0.2 lib/generators/paper_trail/templates/add_object_changes_to_versions.rb.erb
paper_trail-7.0.1 lib/generators/paper_trail/templates/add_object_changes_to_versions.rb.erb
paper_trail-7.0.0 lib/generators/paper_trail/templates/add_object_changes_to_versions.rb
paper_trail-6.0.2 lib/generators/paper_trail/templates/add_object_changes_to_versions.rb
paper_trail-6.0.1 lib/generators/paper_trail/templates/add_object_changes_to_versions.rb
paper_trail-6.0.0 lib/generators/paper_trail/templates/add_object_changes_to_versions.rb
paper_trail-5.2.3 lib/generators/paper_trail/templates/add_object_changes_to_versions.rb
paper_trail-5.2.2 lib/generators/paper_trail/templates/add_object_changes_to_versions.rb
paper_trail-5.2.1 lib/generators/paper_trail/templates/add_object_changes_to_versions.rb
phcmemberspro-8.5.0 db/migrate/20160609220101_add_object_changes_to_versions.rb
paper_trail-5.2.0 lib/generators/paper_trail/templates/add_object_changes_to_versions.rb
phcmemberspro-8.0.1 db/migrate/20160609220101_add_object_changes_to_versions.rb
phcmemberspro-8.0.0 db/migrate/20160609220101_add_object_changes_to_versions.rb
phcmemberspro-7.9.1 db/migrate/20160609220101_add_object_changes_to_versions.rb
phcmemberspro-7.9.0 db/migrate/20160609220101_add_object_changes_to_versions.rb
phcmemberspro-7.8.14 db/migrate/20160609220101_add_object_changes_to_versions.rb
phcmemberspro-7.8.12 db/migrate/20160609220101_add_object_changes_to_versions.rb
phcmemberspro-7.8.11 db/migrate/20160609220101_add_object_changes_to_versions.rb