diff --git a/lib/rubocop/cop/migrations/remove_index.rb b/lib/rubocop/cop/migrations/remove_index.rb index 1bbab1e..3d9c158 100644 --- a/lib/rubocop/cop/migrations/remove_index.rb +++ b/lib/rubocop/cop/migrations/remove_index.rb @@ -12,9 +12,7 @@ module Migrations class RemoveIndex < Cop MSG = 'remove_index is disalowed'.freeze - def_node_matcher :remove_index_found, <<-PATTERN - (:send _ :remove_index ...) - PATTERN + def_node_matcher :remove_index_found, '(:send _ :remove_index ...)' def on_send(node) remove_index_found(node) do