Dillon Cortez
Dillon Cortez

Reputation: 176

why does rake db:migrate say my development database doesn't exist?

I'm typing in the terminal

rake db:migrate

Here's the error Im getting

ActiveRecord::NoDatabaseError: FATAL:  database "db/development.sqlite3" does not exist

Upvotes: 0

Views: 1363

Answers (1)

Jechol Lee
Jechol Lee

Reputation: 145

rake db:migrate doesn't create database, rather requires it exists.

rake db:create creates a database without loading database schema.

Remember you should run rake db:create before you can run rake db:migrate if you dropped database with rake db:drop.

Upvotes: 1

Related Questions