Skip to content

Commit d195af9

Browse files
authored
Merge pull request #1179 from hatchloyalty/pr-compat-sqlite-boolean
Fix deprecation warning re: sqlite representing boolean as integer.
2 parents ec118b3 + b4c0bdd commit d195af9

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
@@ -57,6 +57,9 @@ class TestApp < Rails::Application
5757
config.active_support.halt_callback_chains_on_return_false = false
5858
config.active_record.time_zone_aware_types = [:time, :datetime]
5959
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
6063
end
6164
end
6265

0 commit comments

Comments
 (0)