mysql needs to reconnect after recreate. Thanks @mperham
This commit is contained in:
parent
3910817bfe
commit
2088bf2798
@ -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>.
|
||||
|
Loading…
Reference in New Issue
Block a user