Skip to content

Commit

Permalink
Added docs for #drop_database on MySQL adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
smartinez87 committed Apr 22, 2011
1 parent 3050497 commit 1a77373
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -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
Expand Down
Expand Up @@ -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'
Expand Down

0 comments on commit 1a77373

Please sign in to comment.