mirror of
https://github.com/github/rails.git
synced 2026-01-09 22:58:09 -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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user