actmd/abraham

CI is failing against Rails 6

scarroll32 opened this issue · 1 comments

In test/dummy/config/application.rb, there's a configuration that must be done prior to Rails 6.1, but must not be done in Rails 6.1 and above:

config.active_record.sqlite3.represent_boolean_as_integer = true

There may be a far more elegant way to solve this, but we can wrap it in some version checking like so:

# This configuration is no longer necessary with Rails 6.1+
unless Rails::VERSION::MAJOR >= 6 && Rails::VERSION::MINOR >= 1
  config.active_record.sqlite3.represent_boolean_as_integer = true
end