diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-04-30 18:38:57 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-04-30 18:38:57 -0700 |
commit | 78db16d440c610edeb8b2bb37233a5991caf4a29 (patch) | |
tree | 3130f328e3e6dbe7264afede448c12d1f31f8420 /activerecord | |
parent | fd890f6aea4a0699aab33f70892c33e5212ab728 (diff) | |
download | rails-78db16d440c610edeb8b2bb37233a5991caf4a29.tar.gz rails-78db16d440c610edeb8b2bb37233a5991caf4a29.tar.bz2 rails-78db16d440c610edeb8b2bb37233a5991caf4a29.zip |
maintain return value for recreate_database
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb index 2a7b855f95..d098ded77c 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb @@ -364,8 +364,9 @@ module ActiveRecord # and creates it again using the provided +options+. def recreate_database(name, options = {}) drop_database(name) - create_database(name, options) + sql = create_database(name, options) reconnect! + sql end # Create a new MySQL database with optional <tt>:charset</tt> and <tt>:collation</tt>. |