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/drop_table.rb')
-rw-r--r--rubocop/cop/migration/drop_table.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/migration/drop_table.rb b/rubocop/cop/migration/drop_table.rb
index 531cbb14021..62dea79cbe6 100644
--- a/rubocop/cop/migration/drop_table.rb
+++ b/rubocop/cop/migration/drop_table.rb
@@ -7,7 +7,7 @@ module RuboCop
module Migration
# Cop that checks if `drop_table` is called in deployment migrations.
# Calling it in deployment migrations can cause downtimes as there still may be code using the target tables.
- class DropTable < RuboCop::Cop::Cop
+ class DropTable < RuboCop::Cop::Base
include MigrationHelpers
MSG = <<-MESSAGE.delete("\n").squeeze
@@ -22,7 +22,7 @@ module RuboCop
node.each_descendant(:send) do |send_node|
next unless offensible?(send_node)
- add_offense(send_node, location: :selector)
+ add_offense(send_node.loc.selector)
end
end