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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -