mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
accept option for recreate db for postgres (same as mysql now)
This commit is contained in:
parent
ab6b61e34c
commit
bb72183bca
1 changed files with 4 additions and 2 deletions
|
@ -614,9 +614,11 @@ module ActiveRecord
|
|||
|
||||
# SCHEMA STATEMENTS ========================================
|
||||
|
||||
def recreate_database(name) #:nodoc:
|
||||
# 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)
|
||||
create_database(name, options)
|
||||
end
|
||||
|
||||
# Create a new PostgreSQL database. Options include <tt>:owner</tt>, <tt>:template</tt>,
|
||||
|
|
Loading…
Reference in a new issue