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

Added docs for #drop_database on MySQL adapter

上级 3050497a
......@@ -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
......
......@@ -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'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册