title: Show data in table from Rails Console for PostgreSQL
body: <p>I find something like this: <a href="https://stackoverflow.com/questions/2098131/list-databases-objects-using-rails-console">Rails: How to list database tables/objects using the Rails console?</a></p>
  
  <p>This line is fine:</p>
  
  <pre><code>ActiveRecord::Base.connection.tables
  </code></pre>
  
  <p>and returns all tables</p>
  
  <p>but </p>
  
  <pre><code>ActiveRecord::Base.connection.table_structure("users")
  </code></pre>
  
  <p>generate error:</p>
  
  <pre><code>ActiveRecord::Base.connection.table_structure("projects")
  </code></pre>
  
  <p>I think that </p>
  
  <pre><code>table_structure
  </code></pre>
  
  <p>is not Postgres method.</p>
  
  <p>How can I list all data from the table in Rails console for Postgres database?</p>