【发布时间】:2014-11-27 17:52:38
【问题描述】:
试图让我的导轨启动并运行,但遇到了问题。在命令行上创建我的新 Rails 应用程序时,我运行了通常的
rails new PhotoApp -d postgresql
生成了我的核心脚手架。然后在终端中生成一个带有属性的模型,这很好。创建模型后,我首先运行rake db:create,然后返回一长串字符,顶部告诉我FATAL: role "PhotoApp" does not exist,然后我尝试了rake db:migrate,但返回我也没有用
rake aborted!
PG::ConnectionBad: FATAL: role "PhotoApp" does not exist
/Users/@#$%^$#/Code/Projects/PhotoApp/config/environment.rb:5:in `<top (required)>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
WTF 是怎么回事?
感谢您的帮助。
【问题讨论】:
标签: ruby-on-rails postgresql error-handling rake