Skip to content

Commit

Permalink
Re-add notification validation for database consistency linting
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleMacPherson committed Jun 19, 2024
1 parent 5dab646 commit 0f9c548
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/models/notification.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
class Notification < ApplicationRecord
# include Noticed::Model
# belongs_to :recipient, polymorphic: true
belongs_to :recipient, polymorphic: true

# validates :type, presence: true
validates :type, presence: true

# scope :created_within_data_access_period, -> { where("created_at >= ?", Time.current - DATA_ACCESS_PERIOD_FOR_PUBLISHERS) }
self.inheritance_column = nil
end

0 comments on commit 0f9c548

Please sign in to comment.