I was trying to create a rails project with postgresql
I use this
>>rails new ReadingList --database=postgresql
>>rails s
Then, I jump to psql and create readinglist_development by myself, but it still show the same error.
In Rails practice, run rake db:create to create the database after creating new Rails project.
I believe the name of the database(readinglist_development) is not matching the database name of ReadingList_development as in database.yml which Rails does not recognize the database created using psql.
Its better not to create databases form db workbenches, better to use rails db commands.
rake db:create:all?ReadingList_developmentrather thanreadinglist_development. Check your database.yml in the config directory to change the database name.database: ReadingList_developmentis written indatabase.ymlrake db:createis ok, what is the parameter:all?