replace_gem: Error loading the 'sqlite3' Active Record adapter - while creating model
For rails 5.2.2 explicitly , update your Gemfile to sqlite to:
gem 'sqlite3', '~> 1.3.6'
and in terminal use :
bundle update
For reference only following is added here,
For Rails 5+
, this issue is sort out by specifying the appropriate version for the sqlite
gem in your Gemfile
while working with an SQLite
database:
gem 'sqlite3', '~> 1.3', '>= 1.3.6'
Reference