diff --git a/spec/dummy/application.rb b/spec/dummy/application.rb index 6c3a58e..491b815 100644 --- a/spec/dummy/application.rb +++ b/spec/dummy/application.rb @@ -23,7 +23,11 @@ class Application < Rails::Application config.paths['log'] = 'tmp/log/development.log' config.paths.add 'config/routes.rb', with: "#{APP_ROOT}/config/routes.rb" - config.active_record.sqlite3.represent_boolean_as_integer = true + if Rails.version.match?(/^6.0/) + config.active_record.sqlite3.represent_boolean_as_integer = true + else + config.active_record.legacy_connection_handling = false + end def require_environment! initialize!