Getting Postgres version using rails console
If you are not sure what PG version your environment is using, execute this in the rails console:
ActiveRecord::Base.connection.select_value('SELECT version()')
If you are not sure what PG version your environment is using, execute this in the rails console:
ActiveRecord::Base.connection.select_value('SELECT version()')