diff --git a/test/test_helper.rb b/test/test_helper.rb index 83ee270a..132c8aec 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -18,7 +18,7 @@ def self.env } if $adapter == "mysql2" connection_options[:encoding] = "utf8mb4" - if ActiveRecord::VERSION::STRING.to_f >= 7.1 + if ActiveRecord::VERSION::STRING.to_f >= 7.1 && ActiveRecord::VERSION::MAJOR < 8 connection_options[:prepared_statements] = true end elsif $adapter == "trilogy"