提交 d9ac62c9 编写于 作者: M Matthew Rudy Jacobs

Fix Bug: disable_referential_integrity doesn't work for postgres 9.0.1

上级 206e48e8
......@@ -404,10 +404,7 @@ def session_auth=(user)
# REFERENTIAL INTEGRITY ====================================
def supports_disable_referential_integrity?() #:nodoc:
version = query("SHOW server_version")[0][0].split('.')
version[0].to_i >= 8 && version[1].to_i >= 1
rescue
return false
postgresql_version >= 80100
end
def disable_referential_integrity #:nodoc:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册