[deploy] Optimization: Default Delete Notifications Older than 3 months (#9038)
This commit is contained in:
parent
ab1afd94b0
commit
dba270f02e
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ class Notification < ApplicationRecord
|
|||
Notifications::UpdateWorker.perform_async(notifiable.id, notifiable.class.name, action)
|
||||
end
|
||||
|
||||
def fast_destroy_old_notifications(destroy_before_timestamp = 4.months.ago)
|
||||
def fast_destroy_old_notifications(destroy_before_timestamp = 3.months.ago)
|
||||
sql = <<-SQL
|
||||
DELETE FROM notifications
|
||||
WHERE notifications.id IN (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue