From c03f71528f8813fa6089855e26129c508ab07875 Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 22 Nov 2023 15:21:01 +0100 Subject: [PATCH] Symbolize keys --- db/migrate/20231122125004_fix_notification_migration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20231122125004_fix_notification_migration.rb b/db/migrate/20231122125004_fix_notification_migration.rb index f68ff4583..87736497d 100644 --- a/db/migrate/20231122125004_fix_notification_migration.rb +++ b/db/migrate/20231122125004_fix_notification_migration.rb @@ -3,7 +3,7 @@ class FixNotificationMigration < ActiveRecord::Migration[7.0] Notification.find_each do |notification| parsed_params = JSON.parse(notification.params) parsed_params.delete('_aj_symbol_keys') - notification.update!(params: parsed_params) + notification.update!(params: parsed_params.symbolize_keys) end end end