Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0. Make sure all dependencies are added to Gemfile
# SQLite version 3.x# gem install sqlite3## Ensure the SQLite 3 gem is defined in your Gemfile# gem 'sqlite3'#default:&defaultadapter:sqlite3pool:<%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>timeout:5000development:<<:*defaultdatabase: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:<<:*defaultdatabase:db/test.sqlite3production:<<:*defaultdatabase:db/production.sqlite3
Gemfile
source 'https://rubygems.org'git_source(:github) { |repo| "https://github.com/#{repo}.git" }ruby '2.6.0'# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'gem 'rails', '~> 5.2.2'# Use sqlite3 as the database for Active Recordgem 'sqlite3'# Use Puma as the app servergem 'puma', '~> 3.11'# Use SCSS for stylesheetsgem 'sass-rails', '~> 5.0'# Use Uglifier as compressor for JavaScript assetsgem 'uglifier', '>= 1.3.0'# See https://github.com/rails/execjs#readme for more supported runtimes# gem 'mini_racer', platforms: :ruby# Use CoffeeScript for .coffee assets and viewsgem 'coffee-rails', '~> 4.2'# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinksgem 'turbolinks', '~> 5'# Build JSON APIs with ease. Read more: https://github.com/rails/jbuildergem 'jbuilder', '~> 2.5'# Use Redis adapter to run Action Cable in production# gem 'redis', '~> 4.0'# Use ActiveModel has_secure_password# gem 'bcrypt', '~> 3.1.7'# Use ActiveStorage variant# gem 'mini_magick', '~> 4.8'# Use Capistrano for deployment# gem 'capistrano-rails', group: :development# Reduces boot times through caching; required in config/boot.rbgem 'bootsnap', '>= 1.1.0', require:falsegroup :development, :test do# Call 'byebug' anywhere in the code to stop execution and get a debugger consolegem 'byebug', platforms:[:mri,:mingw,:x64_mingw]