remove useless ternary in PostgreSQL adapter

This commit is contained in:
Aaron Patterson
2010-07-14 15:44:15 -07:00
parent 8ba14c238e
commit 6a534455f6

View File

@@ -375,7 +375,7 @@ module ActiveRecord
def supports_disable_referential_integrity?() #:nodoc:
version = query("SHOW server_version")[0][0].split('.')
(version[0].to_i >= 8 && version[1].to_i >= 1) ? true : false
version[0].to_i >= 8 && version[1].to_i >= 1
rescue
return false
end