summaryrefslogtreecommitdiff
path: root/rubocop/cop/migration/add_timestamps.rb
diff options
context:
space:
mode:
Diffstat (limited to 'rubocop/cop/migration/add_timestamps.rb')
-rw-r--r--rubocop/cop/migration/add_timestamps.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/rubocop/cop/migration/add_timestamps.rb b/rubocop/cop/migration/add_timestamps.rb
index 08ddd91e54d..ba32d6a9960 100644
--- a/rubocop/cop/migration/add_timestamps.rb
+++ b/rubocop/cop/migration/add_timestamps.rb
@@ -13,7 +13,7 @@ module RuboCop
def on_send(node)
return unless in_migration?(node)
- add_offense(node, :selector) if method_name(node) == :add_timestamps
+ add_offense(node, location: :selector) if method_name(node) == :add_timestamps
end
def method_name(node)