summaryrefslogtreecommitdiff
path: root/rubocop/cop/migration/hash_index.rb
diff options
context:
space:
mode:
Diffstat (limited to 'rubocop/cop/migration/hash_index.rb')
-rw-r--r--rubocop/cop/migration/hash_index.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/rubocop/cop/migration/hash_index.rb b/rubocop/cop/migration/hash_index.rb
index 2cc59691d84..3206b73bd3d 100644
--- a/rubocop/cop/migration/hash_index.rb
+++ b/rubocop/cop/migration/hash_index.rb
@@ -29,7 +29,7 @@ module RuboCop
hash_key_name(pair) == :using
if hash_key_value(pair).to_s == 'hash'
- add_offense(pair, :expression)
+ add_offense(pair, location: :expression)
end
end
end