title: Rake db:migrate on aws elastic beanstalk
body: <p>I'm trying to do rake db:migrate on aws, but can't figure out how</p>
  
  <p>Here is my <code>.ebextensions/.config</code> file, but it doesn't work</p>
  
  <pre><code>packages:
    yum:
      postgresql-devel: []
  
  # Run rake tasks before an application deployment
  container_commands:
    01bundler-pg:
      command: bundle config build.pg --with-pg-config=/usr/bin/pg_config
    db:
        command: "bundle exec rake db:migrate"
        leader_only: true
  </code></pre>