Fixing ActiveRecord::NoDatabaseError in Rails

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

Leave a Reply

Your email address will not be published. Required fields are marked *