mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Added #recreate_database docs
This commit is contained in:
@@ -517,6 +517,8 @@ module ActiveRecord
|
||||
end.join("")
|
||||
end
|
||||
|
||||
# Drops the database specified on the +name+ attribute
|
||||
# and creates it again using the provided +options+.
|
||||
def recreate_database(name, options = {}) #:nodoc:
|
||||
drop_database(name)
|
||||
create_database(name, options)
|
||||
|
||||
Reference in New Issue
Block a user