diff --git a/test/dummy/config/application.rb b/test/dummy/config/application.rb index 9383477..e46b206 100644 --- a/test/dummy/config/application.rb +++ b/test/dummy/config/application.rb @@ -13,8 +13,8 @@ module Dummy # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. - # This configuration is no longer necessary with Rails 6.1+ - unless Rails::VERSION::MAJOR >= 6 && Rails::VERSION::MINOR >= 1 + # For Rails 5.2 - 6.0, we need to set this configuration + if (Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR > 1) || (Rails::VERSION::MAJOR == 6 && Rails::VERSION::MINOR < 2) config.active_record.sqlite3.represent_boolean_as_integer = true end end