summaryrefslogtreecommitdiff
path: root/db/post_migrate/20180430143705_backfill_runner_type_for_ci_runners_post_migrate.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-07-25 08:59:23 +0000
committerLin Jen-Shin <godfat@godfat.org>2018-07-25 17:47:12 +0800
commitb95da565cd91fff0729fb4bf6632fb6224de8843 (patch)
treebc2fb2fe99f42b2aae6ff9ed6557366c7959d7b4 /db/post_migrate/20180430143705_backfill_runner_type_for_ci_runners_post_migrate.rb
parent068768e1f8b64f7de4fe18b094e7f2e7555c9398 (diff)
downloadgitlab-ce-b95da565cd91fff0729fb4bf6632fb6224de8843.tar.gz
Enable rubocop for db/**/* and ee/db/**/*49582-enable-cops-for-db
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.rb1
1 files changed, 1 insertions, 0 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
index 38af5aae924..0e6ec46e5f0 100644
--- 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
@@ -9,6 +9,7 @@ class BackfillRunnerTypeForCiRunnersPostMigrate < ActiveRecord::Migration
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