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:
Diffstat (limited to 'db/post_migrate/20180405101928_reschedule_builds_stages_migration.rb')
-rw-r--r--db/post_migrate/20180405101928_reschedule_builds_stages_migration.rb33
1 files changed, 0 insertions, 33 deletions
diff --git a/db/post_migrate/20180405101928_reschedule_builds_stages_migration.rb b/db/post_migrate/20180405101928_reschedule_builds_stages_migration.rb
deleted file mode 100644
index 213d97b71f7..00000000000
--- a/db/post_migrate/20180405101928_reschedule_builds_stages_migration.rb
+++ /dev/null
@@ -1,33 +0,0 @@
-class RescheduleBuildsStagesMigration < ActiveRecord::Migration[4.2]
- include Gitlab::Database::MigrationHelpers
-
- ##
- # Rescheduled `20180212101928_schedule_build_stage_migration.rb`
- #
-
- DOWNTIME = false
- MIGRATION = 'MigrateBuildStage'.freeze
- BATCH_SIZE = 500
-
- disable_ddl_transaction!
-
- class Build < ActiveRecord::Base
- include EachBatch
- self.table_name = 'ci_builds'
- end
-
- def up
- disable_statement_timeout do
- Build.where('stage_id IS NULL').tap do |relation|
- queue_background_migration_jobs_by_range_at_intervals(relation,
- MIGRATION,
- 5.minutes,
- batch_size: BATCH_SIZE)
- end
- end
- end
-
- def down
- # noop
- end
-end