diff --git a/Gemfile b/Gemfile index 2535d020..68020b83 100644 --- a/Gemfile +++ b/Gemfile @@ -13,6 +13,9 @@ platforms :ruby do if version.start_with?('4.2', '5.0') gem 'sqlite3', '~> 1.3.13' + elsif version.start_with?('8.') + # Rails 8.0+ requires sqlite3 >= 2.1 + gem 'sqlite3', '>= 2.1' else gem 'sqlite3', '~> 1.4' end diff --git a/test/test_db-shm b/test/test_db-shm index dc97595b..42eee55d 100644 Binary files a/test/test_db-shm and b/test/test_db-shm differ diff --git a/test/test_db-wal b/test/test_db-wal index 9b212c7b..d750fe47 100644 Binary files a/test/test_db-wal and b/test/test_db-wal differ diff --git a/test/test_helper.rb b/test/test_helper.rb index f9c893e2..27153c67 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -61,7 +61,8 @@ class TestApp < Rails::Application config.action_controller.action_on_unpermitted_parameters = :raise ActiveRecord::Schema.verbose = false - config.active_record.schema_format = :none + # Rails 8.0+ removed :none as a valid schema_format option + config.active_record.schema_format = Rails::VERSION::MAJOR >= 8 ? :ruby : :none config.active_support.test_order = :random config.active_support.halt_callback_chains_on_return_false = false