diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-10-12 10:57:55 +0200 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-11-02 11:39:02 +0100 |
commit | cd3b4ba4abdc96341f38d1919cb5e76f46f11b07 (patch) | |
tree | b8704ef71133924fb6611d74ac12f4b9715e7cc0 /lib/tasks | |
parent | fbdf057898475653c847601f257e140494944f46 (diff) | |
download | gitlab-ce-cd3b4ba4abdc96341f38d1919cb5e76f46f11b07.tar.gz |
Remove gitlab:users:clear_all_authentication_tokens rake task
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/gitlab/users.rake | 11 |
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 |