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/add_columns_to_wide_tables.rb')
-rw-r--r--rubocop/cop/migration/add_columns_to_wide_tables.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/migration/add_columns_to_wide_tables.rb b/rubocop/cop/migration/add_columns_to_wide_tables.rb
index 41056379515..98dd605faef 100644
--- a/rubocop/cop/migration/add_columns_to_wide_tables.rb
+++ b/rubocop/cop/migration/add_columns_to_wide_tables.rb
@@ -6,7 +6,7 @@ module RuboCop
module Cop
module Migration
# Cop that prevents adding columns to wide tables.
- class AddColumnsToWideTables < RuboCop::Cop::Cop
+ class AddColumnsToWideTables < RuboCop::Cop::Base
include MigrationHelpers
MSG = '`%s` is a wide table with several columns, adding more should be avoided unless absolutely necessary.' \
@@ -26,7 +26,7 @@ module RuboCop
return unless offense?(method_name, table_name)
- add_offense(node, location: :selector, message: format(MSG, table_name.value))
+ add_offense(node.loc.selector, message: format(MSG, table_name.value))
end
private