Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

mysql needs to reconnect after recreate. Thanks @mperham

  • Loading branch information...
commit 2088bf27981137a2c6c8b2f718f33b417b4045af 1 parent 3910817
Aaron Patterson tenderlove authored
1  activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
View
@@ -365,6 +365,7 @@ def empty_insert_statement_value
def recreate_database(name, options = {})
drop_database(name)
create_database(name, options)
+ reconnect!
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.