Skip to content

Commit

Permalink
Restore version check for legacy_connection_handling
Browse files Browse the repository at this point in the history
  • Loading branch information
wkirby committed Oct 11, 2024
1 parent 06fd4d2 commit ec49cc2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/dummy/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit ec49cc2

Please sign in to comment.