From 3ddfd9f91a143271b81fd554a611e029ed643794 Mon Sep 17 00:00:00 2001
From: Harald Eilertsen <haraldei@anduin.net>
Date: Tue, 6 Aug 2019 10:47:20 +0200
Subject: activerecord: Fix identity for sum of strings

---
 .../lib/active_record/connection_adapters/postgresql_adapter.rb         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
index 3cd65d0bf5..a76345d2bf 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -744,7 +744,7 @@ module ActiveRecord
       def create_database(name, options = {})
         options = options.reverse_merge(:encoding => "utf8")
 
-        option_string = options.symbolize_keys.sum do |key, value|
+        option_string = options.symbolize_keys.sum("") do |key, value|
           case key
           when :owner
             " OWNER = \"#{value}\""
-- 
cgit v1.2.3