title: FATAL: role "root" does not exist, rails only on website, rails console works
body: <p>So I inherited this mess of a rails project.</p>
  
  <p>I am migrating the DB from mysql to postgres.</p>
  
  <p>I am now encountering this error when trying to open my test webpage</p>
  
  <p>ActiveRecord::NoDatabaseError at /test
  FATAL:  role "root" does not exist
  Run <code>$ bin/rake db:create db:migrate</code> to create your database</p>
  
  <p>This error occurs throughout the entire site.</p>
  
  <p>BUT the rails console can connect to the DB and I can create objects in the DB via console.</p>
  
  <p>this is my database.yml</p>
  
  <pre><code>default: &amp;default
    adapter: postgresql
    encoding: unicode
    host: localhost
    pool: 5
  
  development:
    &lt;&lt;: *default
    database: aas_development
  
  test:
    &lt;&lt;: *default
    database: aas_test
  
  production:
    &lt;&lt;: *default
    database: aas_production
    username: aas
    password: &lt;%= ENV['ASS_DATABASE_PASSWORD'] %&gt;
  </code></pre>