提交 1a773735 编写于 作者: S Sebastian Martinez

Added docs for #drop_database on MySQL adapter

上级 3050497a
...@@ -563,6 +563,10 @@ def create_database(name, options = {}) ...@@ -563,6 +563,10 @@ def create_database(name, options = {})
end end
end end
# Drops a MySQL database.
#
# Example:
# drop_database 'sebastian_development'
def drop_database(name) #:nodoc: def drop_database(name) #:nodoc:
execute "DROP DATABASE IF EXISTS `#{name}`" execute "DROP DATABASE IF EXISTS `#{name}`"
end end
......
...@@ -643,7 +643,7 @@ def create_database(name, options = {}) ...@@ -643,7 +643,7 @@ def create_database(name, options = {})
execute "CREATE DATABASE #{quote_table_name(name)}#{option_string}" execute "CREATE DATABASE #{quote_table_name(name)}#{option_string}"
end end
# Drops a PostgreSQL database # Drops a PostgreSQL database.
# #
# Example: # Example:
# drop_database 'matt_development' # drop_database 'matt_development'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册