title: Print PG Result Object in Rails Console
body: <p>I am doing some basic SQL queries in my rails console. When I query my postgreSQL database, the result is a PG Result object as seen here:</p>
  
  <pre><code>#&lt;PG::Result:0x007f26cac82010 status=PGRES_TUPLES_OK ntuples=1 nfields=1 cmd_tuples=1&gt;
  </code></pre>
  
  <p>My query looks like the following:</p>
  
  <pre><code>sql = "SELECT COUNT (DISTINCT Business_id) FROM applications"
  result = ActiveRecord::Base.connection.execute(sql)
  </code></pre>
  
  <p>I'm currently doing a basic COUNT query and I would like to see the count result.</p>
  
  <p>How can I view the data inside of the PG Result object?</p>