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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -