问题
I have just upgraded from rails 5.2 to rails 6 and when I try to do anything with the app the above error is thrown.
I am using sqlite3 for development in the gem file and the old app was working just fine but after the upgrade, the error keeps getting thrown .
group :development do
gem 'sqlite3' #gem to use in development environment
end
group :production do
gem 'pg' #gem to use in production environment
#gem 'fog'
end
That is what is my gem file
回答1:
I switched my dev machine over to Ubuntu Server 18.04 LTS which has a higher version of Sqlite 3.22 which is not the latest but run Rails 6 just fine.
来源:https://stackoverflow.com/questions/56086629/error-your-version-of-sqlite-3-7-17-is-too-old-active-record-supports-sqlite