diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-07-14 08:01:49 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-07-16 20:03:56 +0900 |
commit | a18cf23a9cbcbeed61e8049442640c7153e0a8fb (patch) | |
tree | ad9c4b6b98247a8e5210f59c3e182d7796ba8bf9 /activerecord/lib/active_record/connection_adapters | |
parent | f3d67e67abc1fc40b691372af318ede8e30fc4bf (diff) | |
download | rails-a18cf23a9cbcbeed61e8049442640c7153e0a8fb.tar.gz rails-a18cf23a9cbcbeed61e8049442640c7153e0a8fb.tar.bz2 rails-a18cf23a9cbcbeed61e8049442640c7153e0a8fb.zip |
Set `represent_boolean_as_integer` via `configuration`
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb index 5174c98c4b..2fede7b847 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb @@ -86,7 +86,7 @@ module ActiveRecord # for all models and all boolean columns, after which the flag must be set # to true by adding the following to your application.rb file: # - # ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer = true + # Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true class_attribute :represent_boolean_as_integer, default: false class StatementPool < ConnectionAdapters::StatementPool |