Skip to content

Commit

Permalink
Add record association
Browse files Browse the repository at this point in the history
excid3 committed Oct 12, 2023
1 parent f93fc2d commit 55aa7bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/noticed/model.rb
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@ module Model
end

belongs_to :recipient, polymorphic: true
belongs_to :record, polymorphic: true

scope :newest_first, -> { order(created_at: :desc) }
scope :unread, -> { where(read_at: nil) }

0 comments on commit 55aa7bf

Please sign in to comment.