mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Prefer utf8_unicode_ci (better) over utf8_general_ci (faster)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user