Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'rubocop/cop/migration/prevent_strings.rb')
-rw-r--r--rubocop/cop/migration/prevent_strings.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/rubocop/cop/migration/prevent_strings.rb b/rubocop/cop/migration/prevent_strings.rb
index 25c00194698..bfeabd2c78d 100644
--- a/rubocop/cop/migration/prevent_strings.rb
+++ b/rubocop/cop/migration/prevent_strings.rb
@@ -33,6 +33,9 @@ module RuboCop
private
def string_operation?(node)
+ # Don't complain about string arrays
+ return false if array_column?(node)
+
modifier = node.children[0]
migration_method = node.children[1]