title: How to backup/restore Rails db with Postgres?
body: <p>I do the following on my server:</p>
  
  <pre><code> pg_dump -O -c register_production &gt; register.sql
  </code></pre>
  
  <p>Then, after copying register.sql to my local environment, I try:</p>
  
  <pre><code> psql register_development &lt; register.sql
  </code></pre>
  
  <p>This appears to work, but when I try to launch the Rails site locally, I get this:</p>
  
  <pre><code> PG::UndefinedTable: ERROR:  relation "list_items" does not exist at character 28
  </code></pre>
  
  <p>How can I restore everything (including relations) from the server db to my local dev db?</p>