summaryrefslogtreecommitdiffstats
path: root/app/lib/vacuum/system_keys_vacuum.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/vacuum/system_keys_vacuum.rb')
-rw-r--r--app/lib/vacuum/system_keys_vacuum.rb13
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 00000000000..ceee2fd164b
--- /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