Skip to content

Commit 306e96e

Browse files
Carl Thuringerlgebhardt
authored andcommitted
Fix deprecation warning re: sqlite representing boolean as integer in Rails >= 5.2
(cherry picked from commit b4c0bdd)
1 parent 18cb4f6 commit 306e96e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/test_helper.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ class TestApp < Rails::Application
6060
config.active_support.halt_callback_chains_on_return_false = false
6161
config.active_record.time_zone_aware_types = [:time, :datetime]
6262
config.active_record.belongs_to_required_by_default = false
63+
if Rails::VERSION::MINOR >= 2
64+
config.active_record.sqlite3.represent_boolean_as_integer = true
65+
end
6366
end
6467
end
6568

0 commit comments

Comments
 (0)