title: Can't get PostgreSQL data to show on Heroku - Rails
body: <p>I am making a Rails API using jbuilder to serve as my database for a React app I'm building. I am using PostgreSQL. I can get the index.json.jbuilder view to work on my local server:</p>
  
  <pre><code>{
   "owners": [
     {
      "first_name": "Alex",
      "last_name": "Hardy",
      "revenue": 100000,
      "audit_score": 89,
      "passing": true,
    },   ...........
  {
  </code></pre>
  
  <p>But these instances are not going to Heroku's server. I have created the heroku app, pushed my app to heroku (git push heroku master) , and migrated the database with: </p>
  
  <pre><code>heroku run rake db:migrate 
  </code></pre>
  
  <p>It has stored the tables because when I run:</p>
  
  <pre><code>Heroku pg:info
  </code></pre>
  
  <p>I get: </p>
  
  <pre><code>Plan:        Hobby-dev
  Status:      Available
  Connections: 2/20
  PG Version:  9.6.2
  Created:     2017-07-26 19:09 UTC
  Data Size:   7.4 MB
  Tables:      3
  Rows:        2/10000 (In compliance)
  Fork/Follow: Unsupported
  Rollback:    Unsupported
  Add-on:      postgresql-contoured-63642
  </code></pre>
  
  <p>If I </p>
  
  <pre><code>heroku console
  </code></pre>
  
  <p>and check for the table Owner (Owner.new) it shows up with the correct properties ("first_name", "last_name"....). BUT, when I go to the site: <a href="https://peaceful-basin-47322.herokuapp.com/owners" rel="nofollow noreferrer">https://peaceful-basin-47322.herokuapp.com/owners</a> it only shows the table, with none of the instances of that model:</p>
  
  <pre><code>{
      "owners": []
  } 
  </code></pre>
  
  <p>How to I migrate the instances of my model to Heroku? </p>