Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

maintain return value for recreate_database

  • Loading branch information...
commit 78db16d440c610edeb8b2bb37233a5991caf4a29 1 parent fd890f6
@tenderlove tenderlove authored
View
3  activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
@@ -364,8 +364,9 @@ def empty_insert_statement_value
# 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>.
Please sign in to comment.
Something went wrong with that request. Please try again.