1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #17510 from pda/ar-create-database-error-message

rake db:create shows underlying error message.
This commit is contained in:
Carlos Antonio da Silva 2014-11-05 08:27:09 -02:00
commit 3dcd1b84dd

View file

@ -31,6 +31,7 @@ module ActiveRecord
end
establish_connection configuration
else
$stderr.puts error.inspect
$stderr.puts "Couldn't create database for #{configuration.inspect}, #{creation_options.inspect}"
$stderr.puts "(If you set the charset manually, make sure you have a matching collation)" if configuration['encoding']
end