diff options
Diffstat (limited to 'app/lib/vacuum/system_keys_vacuum.rb')
-rw-r--r-- | app/lib/vacuum/system_keys_vacuum.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/lib/vacuum/system_keys_vacuum.rb b/app/lib/vacuum/system_keys_vacuum.rb new file mode 100644 index 000000000..ceee2fd16 --- /dev/null +++ b/app/lib/vacuum/system_keys_vacuum.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class Vacuum::SystemKeysVacuum + def perform + vacuum_expired_system_keys! + end + + private + + def vacuum_expired_system_keys! + SystemKey.expired.delete_all + end +end |