提交 bb72183b 编写于 作者: A artemk 提交者: Xavier Noria

accept option for recreate db for postgres (same as mysql now)

上级 ab6b61e3
......@@ -614,9 +614,11 @@ def release_savepoint
# 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>,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册