diff options
Diffstat (limited to 'db/post_migrate/20180430143705_backfill_runner_type_for_ci_runners_post_migrate.rb')
-rw-r--r-- | db/post_migrate/20180430143705_backfill_runner_type_for_ci_runners_post_migrate.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/db/post_migrate/20180430143705_backfill_runner_type_for_ci_runners_post_migrate.rb b/db/post_migrate/20180430143705_backfill_runner_type_for_ci_runners_post_migrate.rb deleted file mode 100644 index ba1023866c5..00000000000 --- a/db/post_migrate/20180430143705_backfill_runner_type_for_ci_runners_post_migrate.rb +++ /dev/null @@ -1,24 +0,0 @@ -class BackfillRunnerTypeForCiRunnersPostMigrate < ActiveRecord::Migration[4.2] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - INSTANCE_RUNNER_TYPE = 1 - PROJECT_RUNNER_TYPE = 3 - - disable_ddl_transaction! - - def up - # rubocop:disable Migration/UpdateColumnInBatches - update_column_in_batches(:ci_runners, :runner_type, INSTANCE_RUNNER_TYPE) do |table, query| - query.where(table[:is_shared].eq(true)).where(table[:runner_type].eq(nil)) - end - - update_column_in_batches(:ci_runners, :runner_type, PROJECT_RUNNER_TYPE) do |table, query| - query.where(table[:is_shared].eq(false)).where(table[:runner_type].eq(nil)) - end - end - - def down - end -end |