【发布时间】:2017-11-06 20:07:23
【问题描述】:
我正在关注 this tutorial 创建 Ruby on Rail 应用程序,但遇到了障碍。我正在尝试将其数据库迁移到 Heroku,结果却被告知:
c:\Sites\railsbridge\test_app>heroku run rails db:migrate
Running rails db:migrate on floating-ocean-40882... up, run.5709 (Free)
rails aborted!
Gem::LoadError: Specified 'sqlite3' for database adapter, but the gem is not
loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the
minimum required by ActiveRecord).
我已经在我的 Gemfile 中列出了 sqlite3,我做错了什么?
【问题讨论】:
-
如果你想使用 Heroku,那么你需要使用
pggem 来使用 Postgresql 而不是 Sqlite。 -
如果您先搜索过这个答案,则可以在 Stackoverflow 和 Heroku's documentation site 上找到它。下次复制错误信息,搜索一下。
标签: ruby-on-rails-3 heroku sqlite