title: How to solve error while trying to create new app in rails
body: <p>I have tried to install this stuff for a week and been struggling since then</p>
  <p>I tried this</p>
  <pre><code>cd /mnt/c
  
  mkdir -p code
  </code></pre>
  <p>Then I tried creating the Rails app and setting up the database</p>
  <pre><code>rails new test_app -d postgresql
  
  cd test_app
  
  rails db:create
  </code></pre>
  <p>Then I get this error</p>
  <pre><code>warning Integrity check: Top level patterns don't match
  error Integrity check failed
  error Found 1 errors.
  
  ========================================
    Your Yarn packages are out of date!
    Please run `yarn install --check-files` to update.
  ========================================
  
  
  To disable this check, please change `check_yarn_integrity`
  to `false` in your webpacker config file (config/webpacker.yml).
  
  
  yarn check v1.22.5
  info Visit https://yarnpkg.com/en/docs/cli/check for documentation about this command.
  </code></pre>
  <p>Another times I get the error</p>
  <pre><code>/var/postgres: can't connect to database&quot;
  </code></pre>
  <p>This is my <code>database.yml</code></p>
  <pre><code>default: &amp;default
    host: localhost
    password: 7532
    port: 5433
    adapter: postgresql
    encoding: unicode
    # For details on connection pooling, see Rails configuration guide
    # https://guides.rubyonrails.org/configuring.html#database-pooling
    pool: &lt;%= ENV.fetch(&quot;RAILS_MAX_THREADS&quot;) { 5 } %&gt;
  
  development:
    &lt;&lt;: *default
    database: test_app_development
  </code></pre>
  <p>Please help, I'm a noob here who doesn't know what he's doing haha</p>