我在我的开发Mac电脑上有一个工作的postgres数据库实例与我的Rails应用程序配合使用,但是由于我正在从头开始构建模型(即添加、删除、更改列),因此迁移变得难以管理,所以我决定从头开始。在运行rake db:drop之后,我无法通过rake db:create重新创建。我只是得到以下结果:
无法为{"adapter"=>"postgresql", "encoding"=>"unicode", "database"=>"xyz_development", "pool"=>5, "username"=>"xyz", "password"=>nil}创建数据库
我想我需要在postgres中创建用户,但它不应该在初始设置中存在吗?
谢谢。