From e8292abbcd581f2fdad368fc5760416071b4b67f Mon Sep 17 00:00:00 2001 From: Doug Richardson Date: Wed, 31 Mar 2010 23:53:26 -0700 Subject: [PATCH] Read postgresql encoding using string key instead of symbol [#4304 state:resolved] Signed-off-by: wycats --- activerecord/lib/active_record/railties/databases.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index 06485b903392e..a107befef3255 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -84,7 +84,7 @@ namespace :db do end end when 'postgresql' - @encoding = config[:encoding] || ENV['CHARSET'] || 'utf8' + @encoding = config['encoding'] || ENV['CHARSET'] || 'utf8' schema_search_path = config['schema_search_path'] || 'public' first_in_schema_search_path = schema_search_path.split(',').first.strip begin