App Academy

Rails --> Rails Setup (lesson)

For Linux users:

If you got an error like:

ActiveRecord::NoDatabaseError FATAL: role does not exist

after invoking: bundle exec rails db:create

Assuming you already have PostGre installed in your system, you just need to create a new database role with:

sudo -u postgres createuser -s yourDistroUsernameHere -P

If you want to know more check this link out.

2 Likes

I swear ruby is broken in most linux distribution. For the longest byebug and rspec was not working, but when I found a solution, another problem occured lol