We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75799f1 commit 463c6d1Copy full SHA for 463c6d1
test/dummy/config/initializers/sqlite3.rb
@@ -5,4 +5,7 @@
5
6
# Enforce booleans to represented as integers in the database.
7
# This was an old SQLite feature that we do not want to support anymore.
8
-::Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
+# Note: This is only for older versions of Sqlite3, the configuration option was dropped at some point
9
+if ::Rails.application.config.active_record.sqlite3.respond_to?(:represent_boolean_as_integer)
10
+ ::Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
11
+end
0 commit comments