postgresql - rails db:migrate fails rake aborted ActiveRecord::NoDatabaseError -


on cloud9 ide installed postgresql because needed deploy on heroku, learning not sure, when try migrate simple database table used bundle exec rake db:migrate , rake aborted , activerecord::nodatabaseerror: fatal: role "ubuntu" not exist.

postgresql comes preinstalled on cloud9. can't run bundle exec rake db:migrate though, because have set , connect first. refer documentation here https://docs.c9.io/v1.0/docs/setting-up-postgresql on how set up. also, dont need install postgresql able deploy heroku. use rails comes with, sqlite. however, best practice use same database development , production.


Comments

Popular posts from this blog

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -