diff options
Diffstat (limited to 'db/post_migrate/20181010133639_backfill_store_project_full_path_in_repo.rb')
-rw-r--r-- | db/post_migrate/20181010133639_backfill_store_project_full_path_in_repo.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/db/post_migrate/20181010133639_backfill_store_project_full_path_in_repo.rb b/db/post_migrate/20181010133639_backfill_store_project_full_path_in_repo.rb deleted file mode 100644 index 247f5980f7e..00000000000 --- a/db/post_migrate/20181010133639_backfill_store_project_full_path_in_repo.rb +++ /dev/null @@ -1,27 +0,0 @@ -# frozen_string_literal: true - -class BackfillStoreProjectFullPathInRepo < ActiveRecord::Migration[4.2] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - BATCH_SIZE = 1_000 - DELAY_INTERVAL = 5.minutes - UP_MIGRATION = 'BackfillProjectFullpathInRepoConfig::Up' - DOWN_MIGRATION = 'BackfillProjectFullpathInRepoConfig::Down' - - disable_ddl_transaction! - - class Project < ActiveRecord::Base - self.table_name = 'projects' - - include EachBatch - end - - def up - queue_background_migration_jobs_by_range_at_intervals(Project, UP_MIGRATION, DELAY_INTERVAL) - end - - def down - queue_background_migration_jobs_by_range_at_intervals(Project, DOWN_MIGRATION, DELAY_INTERVAL) - end -end |