To check the currently running PG version from your Rails application (e.g. Rails console on your production server), simply do this:
ActiveRecord::Base.connection.select_value('SELECT version()')
Posted by Arne Hartherz to makandra dev (2016-08-22 13:06)