diff options
Diffstat (limited to 'rubocop/cop/migration/add_reference.rb')
-rw-r--r-- | rubocop/cop/migration/add_reference.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rubocop/cop/migration/add_reference.rb b/rubocop/cop/migration/add_reference.rb index 6f2648c8f93..02a0ef899b4 100644 --- a/rubocop/cop/migration/add_reference.rb +++ b/rubocop/cop/migration/add_reference.rb @@ -41,7 +41,7 @@ module RuboCop private def existing_table?(new_tables, table) - new_tables.exclude?(table) + !new_tables.include?(table) end def create_table?(node) |