diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2011-04-22 19:44:30 -0300 |
---|---|---|
committer | Sebastian Martinez <sebastian@wyeworks.com> | 2011-04-22 19:44:30 -0300 |
commit | 1a7737353f5844201e5e02528db494cf18f4d72e (patch) | |
tree | 56270e629d350e96dd04185cb11d5bbb938d56bc | |
parent | 3050497a546396f273adfa5cd19330a8b2832931 (diff) | |
download | rails-1a7737353f5844201e5e02528db494cf18f4d72e.tar.gz rails-1a7737353f5844201e5e02528db494cf18f4d72e.tar.bz2 rails-1a7737353f5844201e5e02528db494cf18f4d72e.zip |
Added docs for #drop_database on MySQL adapter
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/mysql_adapter.rb | 4 | ||||
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb index 5f2e56c9c3..d3efc50072 100644 --- a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb @@ -563,6 +563,10 @@ module ActiveRecord end end + # Drops a MySQL database. + # + # Example: + # drop_database 'sebastian_development' def drop_database(name) #:nodoc: execute "DROP DATABASE IF EXISTS `#{name}`" end diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 53ea80cf15..9fb3139178 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -643,7 +643,7 @@ module ActiveRecord execute "CREATE DATABASE #{quote_table_name(name)}#{option_string}" end - # Drops a PostgreSQL database + # Drops a PostgreSQL database. # # Example: # drop_database 'matt_development' |