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
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-10-12 11:57:55 +0300
committerDouwe Maan <douwe@selenight.nl>2017-11-02 13:39:02 +0300
commitcd3b4ba4abdc96341f38d1919cb5e76f46f11b07 (patch)
treeb8704ef71133924fb6611d74ac12f4b9715e7cc0 /lib
parentfbdf057898475653c847601f257e140494944f46 (diff)
Remove gitlab:users:clear_all_authentication_tokens rake task
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/gitlab/users.rake11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/tasks/gitlab/users.rake b/lib/tasks/gitlab/users.rake
deleted file mode 100644
index 3a16ace60bd..00000000000
--- a/lib/tasks/gitlab/users.rake
+++ /dev/null
@@ -1,11 +0,0 @@
-namespace :gitlab do
- namespace :users do
- desc "GitLab | Clear the authentication token for all users"
- task clear_all_authentication_tokens: :environment do |t, args|
- # Do small batched updates because these updates will be slow and locking
- User.select(:id).find_in_batches(batch_size: 100) do |batch|
- User.where(id: batch.map(&:id)).update_all(authentication_token: nil)
- end
- end
- end
-end