From 5fba042da6492eea5d19510eaf55f1130be3a958 Mon Sep 17 00:00:00 2001 From: Yohei Yoshimuta Date: Wed, 7 Aug 2024 12:45:38 +0900 Subject: [PATCH] Do not use sqlite3 v2.0.0 or later to fix CI --- Gemfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index fe5f736b..7b7c5852 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,10 @@ sqlite = ENV['SQLITE_VERSION'] if sqlite gem 'sqlite3', sqlite, platforms: [:ruby] else - gem 'sqlite3', platforms: [:ruby] + # Do not use sqlite3 v2.0.0 or later because it is not compatible with the current Rails version. + # We can remove this constraint when Rails 7.2 is released. + # See https://github.com/rails/rails/pull/51592 and https://github.com/rails/rails/blob/v7.2.0.rc1/activerecord/CHANGELOG.md#rails-720beta1-may-29-2024 + gem 'sqlite3', "~> 1.4", platforms: [:ruby] end platforms :jruby do