Permalink
Browse files

Added #recreate_database docs

  • Loading branch information...
1 parent f049062 commit fab9bb77bf1ee57e4cbb4d2c7d8cf474edc42709 @smartinez87 smartinez87 committed May 4, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
@@ -517,6 +517,8 @@ def structure_dump #:nodoc:
end.join("")
end
+ # Drops the database specified on the +name+ attribute
+ # and creates it again using the provided +options+.
def recreate_database(name, options = {}) #:nodoc:
drop_database(name)
create_database(name, options)

0 comments on commit fab9bb7

Please sign in to comment.