Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-08-19 00:45:41 +0300
committerSean McGivern <sean@gitlab.com>2016-08-19 00:45:41 +0300
commit883b96ab6a77175d9bac7f03c325428327359cdd (patch)
tree82a9af364b06994820b975cef45d98adf3255523 /app/workers/remove_expired_group_links_worker.rb
parentd2cd9d96965722cca06792c63d76d2704366d7a5 (diff)
Allow project group links to be expired
Diffstat (limited to 'app/workers/remove_expired_group_links_worker.rb')
-rw-r--r--app/workers/remove_expired_group_links_worker.rb7
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