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
Post a Comment