summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-01-10 16:32:07 +0000
committerGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-01-10 21:11:55 +0000
commit47cb9c5957a4831bba15151fa179130c5bc2b82a (patch)
treefc5452db7d19d749b36c197336723268485bc2a8 /db
parenta0f468b4d7b74bdc76939c580e16ed296c9486fb (diff)
downloadgitlab-ce-47cb9c5957a4831bba15151fa179130c5bc2b82a.tar.gz
Merge branch 'tc-remove-20181218192239-migration' into 'master'
Remove backfill migration for legacy projects See merge request gitlab-org/gitlab-ce!24299 (cherry picked from commit 626bd9d4cca652f2f21d2aba8d76e1959ffacda0) b87dcc23 Remove backfill migration for legacy projects
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20181218192239_backfill_project_repositories_for_legacy_storage_projects.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/db/post_migrate/20181218192239_backfill_project_repositories_for_legacy_storage_projects.rb b/db/post_migrate/20181218192239_backfill_project_repositories_for_legacy_storage_projects.rb
deleted file mode 100644
index 42f96750789..00000000000
--- a/db/post_migrate/20181218192239_backfill_project_repositories_for_legacy_storage_projects.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-# frozen_string_literal: true
-
-class BackfillProjectRepositoriesForLegacyStorageProjects < ActiveRecord::Migration[5.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
- BATCH_SIZE = 1_000
- DELAY_INTERVAL = 5.minutes
- MIGRATION = 'BackfillLegacyProjectRepositories'
-
- disable_ddl_transaction!
-
- class Project < ActiveRecord::Base
- include EachBatch
-
- self.table_name = 'projects'
- end
-
- def up
- queue_background_migration_jobs_by_range_at_intervals(Project, MIGRATION, DELAY_INTERVAL)
- end
-
- def down
- # no-op: since there could have been existing rows before the migration do not remove anything
- end
-end