saucy/db/migrate/20220626100610_add_object_changes_to_versions.rb

9 lines
301 B
Ruby
Raw Normal View History

2022-06-26 11:57:00 +00:00
# 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