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/db
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-03-01 12:27:57 +0300
committerShinya Maeda <shinya@gitlab.com>2018-03-06 11:02:47 +0300
commitf00cec607f6ffc99c6170e66c6ecfa99c9e15b75 (patch)
treeaee2304bb6a4c281611bf1fa3c4ff793a3e3405b /db
parent99b0542cb0be67fd9af2de74133efb8911519947 (diff)
Revert logic of calculating checksum
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20180228121020_update_checksum_for_ci_job_artifacts.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/db/post_migrate/20180228121020_update_checksum_for_ci_job_artifacts.rb b/db/post_migrate/20180228121020_update_checksum_for_ci_job_artifacts.rb
deleted file mode 100644
index bf69c647b4d..00000000000
--- a/db/post_migrate/20180228121020_update_checksum_for_ci_job_artifacts.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-class UpdateChecksumForCiJobArtifacts < ActiveRecord::Migration
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
- BATCH_SIZE = 2500
-
- class JobArtifact < ActiveRecord::Base
- include EachBatch
- self.table_name = 'ci_job_artifacts'
- end
-
- def up
- UpdateChecksumForCiJobArtifacts::JobArtifact
- .where('checksum IS NULL')
- .each_batch(of: BATCH_SIZE) do |relation|
- ids = relation.pluck(:id).map { |id| [id] }
-
- UpdateArtifactChecksumWorker.bulk_perform_async(ids)
- end
- end
-
- def down
- # no-op
- end
-end