diff --git a/lib/gitlab/database/migration_helpers.rb b/lib/gitlab/database/migration_helpers.rb index 4773a88d0c1..74c87fa2905 100644 --- a/lib/gitlab/database/migration_helpers.rb +++ b/lib/gitlab/database/migration_helpers.rb @@ -63,7 +63,7 @@ module Gitlab FROM #{quoted_table} ORDER BY id ASC LIMIT 1 OFFSET #{processed + batch_size} - }.strip_heredoc).to_hash.first + }).to_hash.first query = %Q{ UPDATE #{quoted_table}