1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Read postgresql encoding using string key instead of symbol [#4304 state:resolved]

Signed-off-by: wycats <wycats@gmail.com>
This commit is contained in:
Doug Richardson 2010-03-31 23:53:26 -07:00 committed by wycats
parent 81e6933246
commit e8292abbcd

View file

@ -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