mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
13 lines
454 B
Ruby
13 lines
454 B
Ruby
# 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[8.0]
|
|
# 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
|