mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 13:45:25 +08:00
Merge pull request #6689 from aignatov-bio/ai-sci-fix-notification-migration-format
Symbolize keys
This commit is contained in:
commit
8a3f56d09d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue