Malek Zalfana
Malek Zalfana

Reputation: 318

Getting an sqlite error when migrating after heroku deployment

So I deployed my app to Heroku and installed gem 'pg' and removed sqlite. Now getting this error when I migrate locally or on Heroku

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).

How can I fix this? Thanks

Upvotes: 1

Views: 70

Answers (1)

Deepak Mahakale
Deepak Mahakale

Reputation: 23691

Add "sqlite3" in development and "pg" in production

group :development, :test do
  gem 'sqlite3'
end

group :production do
  gem 'pg'
end

Upvotes: 1

Related Questions