Skip to content

Commit b4c0bdd

Browse files
author
Carl Thuringer
committed
Only set this configuration option in Rails >= 5.2
1 parent 5cc7c31 commit b4c0bdd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/test_helper.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@ class TestApp < Rails::Application
5151

5252
ActiveRecord::Schema.verbose = false
5353
config.active_record.schema_format = :none
54-
config.active_record.sqlite3.represent_boolean_as_integer = true
5554
config.active_support.test_order = :random
5655

5756
if Rails::VERSION::MAJOR >= 5
5857
config.active_support.halt_callback_chains_on_return_false = false
5958
config.active_record.time_zone_aware_types = [:time, :datetime]
6059
config.active_record.belongs_to_required_by_default = false
60+
if Rails::VERSION::MINOR >= 2
61+
config.active_record.sqlite3.represent_boolean_as_integer = true
62+
end
6163
end
6264
end
6365

0 commit comments

Comments
 (0)