Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gem::LoadError sqlite3 #1

Open
amrapalijz opened this issue Feb 21, 2019 · 4 comments
Open

Gem::LoadError sqlite3 #1

amrapalijz opened this issue Feb 21, 2019 · 4 comments

Comments

@amrapalijz
Copy link

When I execute the rake db:migrate command I get:

Amrapalis-MBP:tornado-active-learning amrapaliz$ rake db:migrate 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).

The Gemfile already has sqlite3. Which version should we add?

@slrbl
Copy link
Owner

slrbl commented Feb 21, 2019

Try the following:
rm Gemfile.lock
add gem 'sqlite3' to Gemfile
bundle install

@amrapalijz
Copy link
Author

That didn't work.
This is the Gemfile I should edit, right: https://github.com/slrbl/tornado-active-learning/blob/master/Gemfile ? It already contains gem 'sqlite3'. Does it need a version?

@slrbl
Copy link
Owner

slrbl commented Feb 22, 2019

Yes, I think that you need to verify your active record version and find the suitable version of sqlite3.

@amrapalijz
Copy link
Author

amrapalijz commented Feb 22, 2019

Ah ok I updated my Gemfile to
gem 'sqlite3', '~> 1.3.6'
and now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants