Prefer utf8_unicode_ci (better) over utf8_general_ci (faster)
This commit is contained in:
parent
c10396b142
commit
f6ca7e4e75
|
@ -55,7 +55,7 @@ namespace :db do
|
|||
case config['adapter']
|
||||
when 'mysql'
|
||||
@charset = ENV['CHARSET'] || 'utf8'
|
||||
@collation = ENV['COLLATION'] || 'utf8_general_ci'
|
||||
@collation = ENV['COLLATION'] || 'utf8_unicode_ci'
|
||||
creation_options = {:charset => (config['charset'] || @charset), :collation => (config['collation'] || @collation)}
|
||||
begin
|
||||
ActiveRecord::Base.establish_connection(config.merge('database' => nil))
|
||||
|
|
Loading…
Reference in New Issue