If you get this error:
rails aborted!
ActiveRecord::NoDatabaseError: FATAL: database "students_development" does not exist
while trying to run rails db:migrate
or create a scaffold, remember to run:
$ rails db:create
before going on
Software Engineer, Husband and Food Lover
If you get this error:
rails aborted!
ActiveRecord::NoDatabaseError: FATAL: database "students_development" does not exist
while trying to run rails db:migrate
or create a scaffold, remember to run:
$ rails db:create
before going on
Today while installing Ruby on Rails with PostgreSQL for a personal project, I incurred in this error:
Installing pg 0.18.4 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. ... An error occurred while installing pg (0.18.4), and Bundler cannot continue. Make sure that `gem install pg -v '0.18.4'` succeeds before bundling.
As I am working on a Linux Laptop with Ubuntu, the fix is very simple: just install the libpq-dev
package with
sudo apt-get install libpq-dev