diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2011-05-03 21:25:38 -0300 |
---|---|---|
committer | Sebastian Martinez <sebastian@wyeworks.com> | 2011-05-03 21:25:38 -0300 |
commit | fab9bb77bf1ee57e4cbb4d2c7d8cf474edc42709 (patch) | |
tree | 66fca7d32d9b9d6476ce7be3d591efbf4a247946 /activerecord/lib/active_record | |
parent | f04906249716718de88ed093146fcd9816a6e21e (diff) | |
download | rails-fab9bb77bf1ee57e4cbb4d2c7d8cf474edc42709.tar.gz rails-fab9bb77bf1ee57e4cbb4d2c7d8cf474edc42709.tar.bz2 rails-fab9bb77bf1ee57e4cbb4d2c7d8cf474edc42709.zip |
Added #recreate_database docs
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/mysql_adapter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb index 862ce852e6..5545a94859 100644 --- a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb @@ -517,6 +517,8 @@ module ActiveRecord 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) |