saucy/db/migrate/20220626100610_add_object_changes_to_versions.rb
2022-06-26 12:57:00 +01:00

9 lines
301 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[7.0]
def change
add_column :versions, :object_changes, :json
end
end