diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-07-25 08:59:23 +0000 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-07-25 17:47:12 +0800 |
commit | b95da565cd91fff0729fb4bf6632fb6224de8843 (patch) | |
tree | bc2fb2fe99f42b2aae6ff9ed6557366c7959d7b4 /db/post_migrate/20180430143705_backfill_runner_type_for_ci_runners_post_migrate.rb | |
parent | 068768e1f8b64f7de4fe18b094e7f2e7555c9398 (diff) | |
download | gitlab-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.rb | 1 |
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 |