* Add: #581 NGワード検出履歴を定期的に削除する処理 * マイグレーションコードを修正
This commit is contained in:
parent
aec832e257
commit
b2acc7dbb8
6 changed files with 26 additions and 1 deletions
|
@ -12,6 +12,7 @@ class Vacuum::NgHistoriesVacuum
|
|||
private
|
||||
|
||||
def vacuum_histories!
|
||||
NgwordHistory.where('created_at < ?', HISTORY_LIFE_DURATION.ago).in_batches.destroy_all
|
||||
NgRuleHistory.where('created_at < ?', HISTORY_LIFE_DURATION.ago).in_batches.destroy_all
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue