mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
remove useless ternary in PostgreSQL adapter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user