Skip to content
Browse files

Added docs for #drop_database on MySQL adapter

  • Loading branch information...
1 parent 3050497 commit 1a7737353f5844201e5e02528db494cf18f4d72e @smartinez87 smartinez87 committed Apr 22, 2011
View
4 activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
@@ -563,6 +563,10 @@ def create_database(name, options = {})
end
end
+ # Drops a MySQL database.
+ #
+ # Example:
+ # drop_database 'sebastian_development'
def drop_database(name) #:nodoc:
execute "DROP DATABASE IF EXISTS `#{name}`"
end
View
2 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -643,7 +643,7 @@ def create_database(name, options = {})
execute "CREATE DATABASE #{quote_table_name(name)}#{option_string}"
end
- # Drops a PostgreSQL database
+ # Drops a PostgreSQL database.
#
# Example:
# drop_database 'matt_development'

0 comments on commit 1a77373

Please sign in to comment.
Something went wrong with that request. Please try again.