I'm trying to deploy my rails application databse to heroku.
I'm using this command
heroku run rake db:migrate
Ther error im getting is the following
Running rake db:migrate on ⬢ mighty-lowlands-99868... up, run.8184 (Free) rake 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).
My gem file is
source 'https://rubygems.org'
#gem 'ruby', '2.3.4'
gem 'rails', '4.2.5'
#gem 'sqlite3'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
#Authentication Gem -> https://github.com/thoughtbot/clearance
gem 'clearance', '~> 1.16.1'
gem 'bootstrap'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
#Gem for search
#https://github.com/karmi/retire
gem 'tire'
gem 'simple_form', '~> 3.4'
gem 'jquery-turbolinks'
gem "chartkick"
group :development, :test do
gem 'web-console', '~> 2.0'
gem 'spring'
gem 'sqlite3'
gem 'byebug'
end
group :production do
gem 'pg'
gem 'rails_12factor'
end
Any idea what the solution is
Datebasae.yml
default: &default
adapter: sqlite3
pool: 5
timeout: 5000
development:
<<: *default
database: db/development.sqlite3
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
database: db/test.sqlite3
production:
<<: *default
database: db/production.sqlite3