Browse Source

Maintenance: Improve db strategy cop to handle more edge cases.

Rolf Schmidt 2 years ago
parent
commit
a121cc3eda
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .rubocop/cop/zammad/exists_db_strategy.rb

+ 1 - 1
.rubocop/cop/zammad/exists_db_strategy.rb

@@ -5,7 +5,7 @@ module RuboCop
     module Zammad
       class ExistsDbStrategy < Base
         def_node_matcher :migration_execute?, <<-PATTERN
-          $(send (const (const _ :ObjectManager ) :Attribute) :migration_execute)
+          $(send {(const (const _ :ObjectManager ) :Attribute) (... :described_class)} :migration_execute)
         PATTERN
 
         def_node_matcher :create_attribute?, <<-PATTERN