我在創建Ruby on Rail應用程序時遵循this tutorial,並且遇到了障礙。我試圖遷移的數據庫的Heroku,卻被告知這一點:我無法使用sqlite將我的Rails應用程序的數據庫遷移到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).
我已經已經SQLITE3在我的Gemfile上市,我究竟做錯了什麼?
部署。如果你想使用Heroku的,那麼你需要使用'pg'寶石在PostgreSQL工作而不是Sqlite。 –
如果您已經搜索到了該答案,則可以在Stackoverflow上查找[Heroku的文檔站點](https://devcenter.heroku.com/articles/sqlite3)。下一次,複製錯誤消息並搜索它。 –