scinote-web/db/migrate/20231122125004_fix_notification_migration.rb
2023-11-22 13:52:27 +01:00

9 lines
284 B
Ruby

class FixNotificationMigration < ActiveRecord::Migration[7.0]
def up
Notification.find_each do |notification|
parsed_params = JSON.parse(notification.params)
parsed_params.delete('_aj_symbol_keys')
notification.update!(params: parsed_params)
end
end
end