mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #2524 from JonathonMA/fix_ecd37084b28a05f05251
Use mysql_creation_options inside rescue block
This commit is contained in:
@@ -94,7 +94,7 @@ db_namespace = namespace :db do
|
||||
"IDENTIFIED BY '#{config['password']}' WITH GRANT OPTION;"
|
||||
ActiveRecord::Base.establish_connection(config.merge(
|
||||
'database' => nil, 'username' => 'root', 'password' => root_password))
|
||||
ActiveRecord::Base.connection.create_database(config['database'], creation_options)
|
||||
ActiveRecord::Base.connection.create_database(config['database'], mysql_creation_options(config))
|
||||
ActiveRecord::Base.connection.execute grant_statement
|
||||
ActiveRecord::Base.establish_connection(config)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user