mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Added docs for #drop_database on MySQL adapter
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user