title: FATAL: role "root" does not exist
body: <p>I have started to learn using heroku and i was trying to execute
   <code>bundle exec rake db:create db:migrate</code> command, i have encountered the following errors,</p>
  
  <pre><code>FATAL:  role "root" does not exist
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:898:in `rescue in connect'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `connect'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:568:in `initialize'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `new'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `postgresql_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:435:in `new_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:445:in `checkout_new_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `acquire_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:351:in `block in checkout'
  /usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:350:in `checkout'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in `block in connection'
  /usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in `connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:541:in `retrieve_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_handling.rb:113:in `retrieve_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_handling.rb:87:in `connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/tasks/postgresql_database_tasks.rb:8:in `connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/tasks/postgresql_database_tasks.rb:17:in `create'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/tasks/database_tasks.rb:88:in `create'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/tasks/database_tasks.rb:102:in `block in create_current'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/tasks/database_tasks.rb:225:in `block in each_current_configuration'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/tasks/database_tasks.rb:224:in `each'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/tasks/database_tasks.rb:224:in `each_current_configuration'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/tasks/database_tasks.rb:101:in `create_current'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/railties/databases.rake:17:in `block (2 levels) in &lt;top (required)&gt;'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/task.rb:240:in `call'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/task.rb:240:in `block in execute'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/task.rb:235:in `each'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/task.rb:235:in `execute'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
  /usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/task.rb:165:in `invoke'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:156:in `invoke_task'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:112:in `block (2 levels) in top_level'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:112:in `each'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:112:in `block in top_level'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:121:in `run_with_threads'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:106:in `top_level'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:84:in `block in run'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:182:in `standard_exception_handling'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:79:in `run'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/bin/rake:33:in `&lt;top (required)&gt;'
  /usr/local/bin/rake:23:in `load'
  /usr/local/bin/rake:23:in `&lt;main&gt;'
  Couldn't create database for {"adapter"=&gt;"postgresql", "encoding"=&gt;"unicode", "pool"=&gt;5, "database"=&gt;"root"}
  FATAL:  role "root" does not exist
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:898:in `rescue in connect'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `connect'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:568:in `initialize'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `new'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `postgresql_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:435:in `new_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:445:in `checkout_new_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `acquire_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:351:in `block in checkout'
  /usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:350:in `checkout'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in `block in connection'
  /usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in `connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:541:in `retrieve_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_handling.rb:113:in `retrieve_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_handling.rb:87:in `connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/tasks/postgresql_database_tasks.rb:8:in `connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/tasks/postgresql_database_tasks.rb:17:in `create'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/tasks/database_tasks.rb:88:in `create'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/tasks/database_tasks.rb:102:in `block in create_current'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/tasks/database_tasks.rb:225:in `block in each_current_configuration'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/tasks/database_tasks.rb:224:in `each'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/tasks/database_tasks.rb:224:in `each_current_configuration'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/tasks/database_tasks.rb:101:in `create_current'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/railties/databases.rake:17:in `block (2 levels) in &lt;top (required)&gt;'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/task.rb:240:in `call'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/task.rb:240:in `block in execute'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/task.rb:235:in `each'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/task.rb:235:in `execute'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
  /usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/task.rb:165:in `invoke'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:156:in `invoke_task'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:112:in `block (2 levels) in top_level'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:112:in `each'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:112:in `block in top_level'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:121:in `run_with_threads'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:106:in `top_level'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:84:in `block in run'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:182:in `standard_exception_handling'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/lib/rake/application.rb:79:in `run'
  /var/lib/gems/1.9.1/gems/rake-10.4.0/bin/rake:33:in `&lt;top (required)&gt;'
  /usr/local/bin/rake:23:in `load'
  /usr/local/bin/rake:23:in `&lt;main&gt;'
  Couldn't create database for {"adapter"=&gt;"postgresql", "encoding"=&gt;"unicode", "pool"=&gt;5, "database"=&gt;"ruby-getting-started_test"}
  rake aborted!
  ActiveRecord::NoDatabaseError: FATAL:  role "root" does not exist
  Run `$ bin/rake db:create db:migrate` to create your database
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:898:in `rescue in connect'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `connect'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:568:in `initialize'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `new'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `postgresql_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:435:in `new_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:445:in `checkout_new_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `acquire_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:351:in `block in checkout'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:350:in `checkout'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in `block in connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in `connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:541:in `retrieve_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_handling.rb:113:in `retrieve_connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/connection_handling.rb:87:in `connection'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/migration.rb:909:in `initialize'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/migration.rb:807:in `new'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/migration.rb:807:in `up'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/migration.rb:785:in `migrate'
  /var/lib/gems/1.9.1/gems/activerecord-4.1.8/lib/active_record/railties/databases.rake:34:in `block (2 levels) in &lt;top (required)&gt;'
  Tasks: TOP =&gt; db:migrate
  (See full trace by running task with --trace)
  </code></pre>
  
  <p>i have tried to edit the schema.rb file but it is of no use. I am developing this on Ubuntu, please state where am i going wrong</p>