aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-11-05 08:27:09 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-11-05 08:27:09 -0200
commit3dcd1b84dd35168e737b78c30fc11511edda2cd8 (patch)
treef64e4f29fe5372d06508bd1141c0abbcbb00d1c0 /activerecord
parent44c7ebf5beb7936f22aefb6ffaadb62082456f34 (diff)
parent4bcb0942241fe10d734b9777a61e0e0026cf0d5d (diff)
downloadrails-3dcd1b84dd35168e737b78c30fc11511edda2cd8.tar.gz
rails-3dcd1b84dd35168e737b78c30fc11511edda2cd8.tar.bz2
rails-3dcd1b84dd35168e737b78c30fc11511edda2cd8.zip
Merge pull request #17510 from pda/ar-create-database-error-message
rake db:create shows underlying error message.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/tasks/mysql_database_tasks.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/tasks/mysql_database_tasks.rb b/activerecord/lib/active_record/tasks/mysql_database_tasks.rb
index d890196f47..eafbb2c249 100644
--- a/activerecord/lib/active_record/tasks/mysql_database_tasks.rb
+++ b/activerecord/lib/active_record/tasks/mysql_database_tasks.rb
@@ -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