Fix rubocop
This commit is contained in:
parent
6b59ce6985
commit
efa0c376bc
23 changed files with 32 additions and 32 deletions
|
@ -12,6 +12,6 @@ class Vacuum::ListStatusesVacuum
|
|||
private
|
||||
|
||||
def vacuum_list_statuses!
|
||||
ListStatus.where('created_at < ?', LIST_STATUS_LIFE_DURATION.ago).in_batches.destroy_all
|
||||
ListStatus.where(created_at: ...LIST_STATUS_LIFE_DURATION.ago).in_batches.destroy_all
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue