Skip to content

Commit

Permalink
Merge pull request rails#22848 from derekprior/dp-postgresql-version
Browse files Browse the repository at this point in the history
Make `postgresql_version` public
  • Loading branch information
rafaelfranca committed Dec 30, 2015
2 parents d5a252e + 8ad1eea commit f390bd4
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,12 @@ def column_name_for_operation(operation, node) # :nodoc:
"average" => "avg",
}

protected
# Returns the version of the connected PostgreSQL server.
def postgresql_version
@connection.server_version
end

# Returns the version of the connected PostgreSQL server.
def postgresql_version
@connection.server_version
end
protected

# See http://www.postgresql.org/docs/current/static/errcodes-appendix.html
FOREIGN_KEY_VIOLATION = "23503"
Expand Down

0 comments on commit f390bd4

Please sign in to comment.