【发布时间】:2011-05-08 11:22:35
【问题描述】:
我将我在/opt/local(Macports 的东西所在的地方)中的所有东西都移到了~/.macports。这包括我的旧 postgres 数据库集群。
然后我使用 Homebrew 安装了 postgres 并运行了它告诉我的设置(在 /usr/local 中创建一个新的数据库集群)。
在我的项目中,我运行了rake db:drop:all 和rake db:create。这些人愉快地工作。
但是当我尝试rake db:migrate 时,postgres 和 rails 争吵并告诉我
rake aborted!
PGError: ERROR: unrecognized time zone name: "UTC"
: SET time zone 'UTC'
不过,我不知道他们在说什么。我发现this article 有一个关于config.time_zone 的错误有点启发性,但还不足以找到我的方式。
谢谢!
【问题讨论】:
标签: postgresql activerecord ruby-on-rails-3 macports homebrew