diff options
author | Sean McGivern <sean@gitlab.com> | 2016-08-18 22:45:41 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-08-18 22:45:41 +0100 |
commit | 883b96ab6a77175d9bac7f03c325428327359cdd (patch) | |
tree | 82a9af364b06994820b975cef45d98adf3255523 /app/workers | |
parent | d2cd9d96965722cca06792c63d76d2704366d7a5 (diff) | |
download | gitlab-ce-883b96ab6a77175d9bac7f03c325428327359cdd.tar.gz |
Allow project group links to be expired
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/remove_expired_group_links_worker.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/workers/remove_expired_group_links_worker.rb b/app/workers/remove_expired_group_links_worker.rb new file mode 100644 index 00000000000..246c8b6650a --- /dev/null +++ b/app/workers/remove_expired_group_links_worker.rb @@ -0,0 +1,7 @@ +class RemoveExpiredGroupLinksWorker + include Sidekiq::Worker + + def perform + ProjectGroupLink.expired.destroy_all + end +end |