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:
authorSean McGivern <sean@gitlab.com>2017-11-17 16:38:14 +0300
committerSean McGivern <sean@gitlab.com>2017-11-17 19:56:50 +0300
commitd8be981466e2a794b42996960f1fdb91e560a707 (patch)
tree13da4c4968dc8a2abf8ef2e531d905759521c5f5 /db/migrate/20160715204316_add_request_access_enabled_to_groups.rb
parent7910b0256e1ed3a9fdabb875c43f1ad328e1920e (diff)
Prevent update_column_in_batches on large tables
add_column_with_default is implemented in terms of update_column_in_batches, but update_column_in_batches can be used independently. Neither of these should be used on the specified large tables, because they will cause issues on large instances like GitLab.com. This also ignores the cop for all existing migrations, renaming AddColumnWithDefaultToLargeTable where appropriate.
Diffstat (limited to 'db/migrate/20160715204316_add_request_access_enabled_to_groups.rb')
-rw-r--r--db/migrate/20160715204316_add_request_access_enabled_to_groups.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20160715204316_add_request_access_enabled_to_groups.rb b/db/migrate/20160715204316_add_request_access_enabled_to_groups.rb
index 4a317646788..4fcb29e1325 100644
--- a/db/migrate/20160715204316_add_request_access_enabled_to_groups.rb
+++ b/db/migrate/20160715204316_add_request_access_enabled_to_groups.rb
@@ -1,4 +1,4 @@
-# rubocop:disable Migration/AddColumnWithDefaultToLargeTable
+# rubocop:disable Migration/UpdateLargeTable
class AddRequestAccessEnabledToGroups < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
disable_ddl_transaction!