错误您的SQLite版本(3.7.17)过旧. Active Record支持SQLite> = 3.8 [英] Error Your version of SQLite (3.7.17) is too old. Active Record supports SQLite >= 3.8
本文介绍了错误您的SQLite版本(3.7.17)过旧. Active Record支持SQLite> = 3.8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚从Rails 5.2升级到Rails 6,当我尝试使用该应用程序执行任何操作时,抛出了以上错误.
我正在使用sqlite3在gem文件中进行开发,并且旧版应用程序运行正常,但升级后,错误不断抛出.
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
那是我的宝石文件
解决方案
我将开发机切换到Ubuntu Server 18.04 LTS,后者具有更高版本的Sqlite 3.22,该版本不是最新版本,但可以正常运行Rails 6. >
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
解决方案
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.
这篇关于错误您的SQLite版本(3.7.17)过旧. Active Record支持SQLite> = 3.8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文