Fix to rails version check

This commit is contained in:
Jonathan Abbett 2021-04-15 14:37:56 -04:00
parent 7ece8d904c
commit 71e201feab

View File

@ -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