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