diff --git a/rubocop/cop/migration/prevent_index_creation.rb b/rubocop/cop/migration/prevent_index_creation.rb index aeeec36ecf0fcde1bcdf1872bdcaf077e9ac063d..c383466f73bfba0cf311ed4bdb9667f0cf2bb4a7 100644 --- a/rubocop/cop/migration/prevent_index_creation.rb +++ b/rubocop/cop/migration/prevent_index_creation.rb @@ -8,7 +8,7 @@ module Migration class PreventIndexCreation < RuboCop::Cop::Cop include MigrationHelpers - FORBIDDEN_TABLES = %i[ci_builds taggings ci_builds_metadata events].freeze + FORBIDDEN_TABLES = %i[ci_builds].freeze MSG = "Adding new index to #{FORBIDDEN_TABLES.join(", ")} is forbidden, see https://gitlab.com/gitlab-org/gitlab/-/issues/332886" diff --git a/spec/rubocop/cop/migration/prevent_index_creation_spec.rb b/spec/rubocop/cop/migration/prevent_index_creation_spec.rb index b5bb770553a3134526791f54e2dafdc3aabdee90..ed7c8974d8dd2e66276e9c7dda7a6582c60fbf6f 100644 --- a/spec/rubocop/cop/migration/prevent_index_creation_spec.rb +++ b/spec/rubocop/cop/migration/prevent_index_creation_spec.rb @@ -6,7 +6,7 @@ RSpec.describe RuboCop::Cop::Migration::PreventIndexCreation do subject(:cop) { described_class.new } - let(:forbidden_tables) { %w(ci_builds taggings ci_builds_metadata events) } + let(:forbidden_tables) { %w(ci_builds) } let(:forbidden_tables_list) { forbidden_tables.join(', ') } context 'when in migration' do