Merge pull request #5011 from plataformatec/frg-fix-sqlite-warning

Fix SQLite3 warning when running tests
This commit is contained in:
Felipe Renan 2019-01-28 15:29:25 -02:00 committed by GitHub
commit e72839f4bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -44,5 +44,10 @@ module RailsApp
config.to_prepare do
Devise::SessionsController.layout "application"
end
# Remove this check once Rails 5.0 support is removed.
if Devise::Test.rails52_and_up?
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
end
end
end