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