【发布时间】:2011-06-11 15:03:12
【问题描述】:
我已将我的应用程序推送到 Heroku,但是我的数据库 (Sqlite3) 无法迁移。我知道 heroku 会自动迁移为 PG。 [我没有安装 PG]。
我想如果有问题,我会收到错误提示。
这是我的结果:
pc-name$ heroku rake db:migrate --trace
(in /app)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
当我尝试创建时-
pc-name$ heroku rake db:create --trace
cwogwtvrpc already exists
(in /app)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:create
【问题讨论】:
-
有什么问题?尝试 heroku 重启
-
嘿米哈伊尔,问题是,数据库没有迁移。我尝试 heroku restart 无济于事。
-
我销毁了应用程序,然后重新创建了它。成功了
标签: ruby-on-rails heroku rake dbmigrate