diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-18 10:34:06 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-18 10:34:06 +0000 |
commit | 859a6fb938bb9ee2a317c46dfa4fcc1af49608f0 (patch) | |
tree | d7f2700abe6b4ffcb2dcfc80631b2d87d0609239 /rubocop/migration_helpers.rb | |
parent | 446d496a6d000c73a304be52587cd9bbc7493136 (diff) | |
download | gitlab-ce-859a6fb938bb9ee2a317c46dfa4fcc1af49608f0.tar.gz |
Add latest changes from gitlab-org/gitlab@13-9-stable-eev13.9.0-rc42
Diffstat (limited to 'rubocop/migration_helpers.rb')
-rw-r--r-- | rubocop/migration_helpers.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/rubocop/migration_helpers.rb b/rubocop/migration_helpers.rb index e9533fb65b2..63b3766e126 100644 --- a/rubocop/migration_helpers.rb +++ b/rubocop/migration_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RuboCop # Module containing helper methods for writing migration cops. module MigrationHelpers @@ -7,18 +9,19 @@ module RuboCop plan_limits ].freeze - # Tables with large number of columns (> 50 on GitLab.com as of 03/2020) + # Tables with large number of columns (> 50 on GitLab.com as of 01/2021) WIDE_TABLES = %i[ - users - projects ci_builds + namespaces + projects + users ].freeze # List of helpers that add new columns, either directly (ADD_COLUMN_METHODS) # or through a create/alter table (TABLE_METHODS) ADD_COLUMN_METHODS = %i(add_column add_column_with_default change_column_type_concurrently).freeze - TABLE_METHODS = %i(create_table create_table_if_not_exists change_table).freeze + TABLE_METHODS = %i(create_table create_table_if_not_exists change_table create_table_with_constraints).freeze def high_traffic_tables @high_traffic_tables ||= rubocop_migrations_config.dig('Migration/UpdateLargeTable', 'HighTrafficTables') |