Skip to content

Commit

Permalink
Remove interacted_at from upgrade guide since it was a Jumpstart Pro …
Browse files Browse the repository at this point in the history
…only feature
  • Loading branch information
excid3 committed Jan 18, 2024
1 parent a519631 commit 00767ee
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ Notification.find_each do |notification|
attributes = notification.attributes.slice("id", "type")
attributes[:type] = attributes[:type].sub("Notification", "Notifier"))
attributes[:params] = Noticed::Coder.load(notification.params)
attributes[:notifications_attributes] = [{recipient_type: notification.recipient_type, recipient_id: notification.recipient_id, seen_at: notification.read_at, read_at: notification.interacted_at}]
attributes[:notifications_attributes] = [{
recipient_type: notification.recipient_type,
recipient_id: notification.recipient_id,
read_at: notification.read_at,
seen_at: notification.read_at
}]
Noticed::Event.create!(attributes)
end
```
Expand Down Expand Up @@ -131,9 +136,6 @@ class NewCommentNotifier < Noticed::Event
end
```




### Has Noticed Notifications

`has_noticed_notifications` has been removed in favor of the `record` polymorphic relationship that can be directly queried with ActiveRecord. You can add the necessary json query to your model(s) to restore the json query if needed.
Expand Down

0 comments on commit 00767ee

Please sign in to comment.