Skip to content

Commit

Permalink
accept option for recreate db for postgres (same as mysql now)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemk authored and fxn committed Aug 13, 2011
1 parent ab6b61e commit bb72183
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -614,9 +614,11 @@ def release_savepoint


# SCHEMA STATEMENTS ======================================== # 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) drop_database(name)
create_database(name) create_database(name, options)
end end


# Create a new PostgreSQL database. Options include <tt>:owner</tt>, <tt>:template</tt>, # Create a new PostgreSQL database. Options include <tt>:owner</tt>, <tt>:template</tt>,
Expand Down

0 comments on commit bb72183

Please sign in to comment.