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:
Diffstat (limited to 'rubocop/cop/migration/update_large_table.rb')
-rw-r--r--rubocop/cop/migration/update_large_table.rb22
1 files changed, 1 insertions, 21 deletions
diff --git a/rubocop/cop/migration/update_large_table.rb b/rubocop/cop/migration/update_large_table.rb
index 94bba31c249..e44eadbdb92 100644
--- a/rubocop/cop/migration/update_large_table.rb
+++ b/rubocop/cop/migration/update_large_table.rb
@@ -19,26 +19,6 @@ module RuboCop
'complete, and should be avoided unless absolutely ' \
'necessary'.freeze
- LARGE_TABLES = %i[
- ci_build_trace_sections
- ci_builds
- ci_job_artifacts
- ci_pipelines
- ci_stages
- events
- issues
- merge_request_diff_commits
- merge_request_diff_files
- merge_request_diffs
- merge_requests
- namespaces
- notes
- projects
- project_ci_cd_settings
- routes
- users
- ].freeze
-
BATCH_UPDATE_METHODS = %w[
:add_column_with_default
:change_column_type_concurrently
@@ -59,7 +39,7 @@ module RuboCop
update_method = matches.first
table = matches.last.to_a.first
- return unless LARGE_TABLES.include?(table)
+ return unless BLACKLISTED_TABLES.include?(table)
add_offense(node, location: :expression, message: format(MSG, update_method, table))
end