Skip to content

Commit

Permalink
Update UPGRADE.md
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 authored Jan 19, 2024
1 parent c24c3e5 commit 5b4e81b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ end

# Migrate each record to the new tables
Notification.find_each do |notification|
attributes = notification.attributes.slice("id", "type").with_indifferent_access
attributes = notification.attributes.slice("type").with_indifferent_access
attributes[:type] = attributes[:type].sub("Notification", "Notifier")
attributes[:params] = Noticed::Coder.load(notification.params)
attributes[:params] = {} if attributes[:params].try(:has_key?, "noticed_error") # Skip invalid records
Expand Down

0 comments on commit 5b4e81b

Please sign in to comment.