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:
parent
81e6933246
commit
e8292abbcd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue