When pushing a new app to heroku, then running heroku rake db:migrate I get the following error:
heroku rake db:migrate
rake aborted!
Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (pg is not part of the bundle. Add it to Gemfile.)
Does anyone have any idea why it’s asking for postgresql? In my gemfile the only db gem I’m using is sqlite.
This app is using Devise for authentication, that’s the only gem out of the ordinary in the app’s gemfile. On a sidenote, when I attempt to follow the advice, bundler throws:
Could not find gem 'activerecord-postgresql-adapter (>= 0)' in any of the gem sources listed in your Gemfile.
you can’t use sqlite3 on Heroku, you have to use their Postgres or use your own external Db.
In your gemfile do
to let you use sqlite3 locally and postgres on Heroku.