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/background_migration_record.rb')
-rw-r--r--rubocop/cop/migration/background_migration_record.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/rubocop/cop/migration/background_migration_record.rb b/rubocop/cop/migration/background_migration_record.rb
index 2ee6b9f7b42..ee6f3fd140b 100644
--- a/rubocop/cop/migration/background_migration_record.rb
+++ b/rubocop/cop/migration/background_migration_record.rb
@@ -5,7 +5,7 @@ require_relative '../../migration_helpers'
module RuboCop
module Cop
module Migration
- class BackgroundMigrationRecord < RuboCop::Cop::Cop
+ class BackgroundMigrationRecord < RuboCop::Cop::Base
include MigrationHelpers
MSG = <<~MSG
@@ -26,14 +26,14 @@ module RuboCop
return unless in_background_migration?(node)
return unless inherits_from_active_record_base?(node)
- add_offense(node, location: :expression)
+ add_offense(node)
end
def on_send(node)
return unless in_background_migration?(node)
return unless class_new_active_record_base?(node)
- add_offense(node, location: :expression)
+ add_offense(node)
end
end
end