aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/configuring.md
diff options
context:
space:
mode:
authorStan Lo <a22301613@yahoo.com.tw>2017-02-09 18:04:48 +0800
committerStan Lo <a22301613@yahoo.com.tw>2017-02-10 09:08:20 +0800
commitd1317ae08eb755c55df5d21af65ba9111be05ebe (patch)
treed8ab8b2b42f406d5411fc9b5c6802971aa544c2a /guides/source/configuring.md
parentcabb212976703dac46bacc36addf70a232e96e71 (diff)
downloadrails-d1317ae08eb755c55df5d21af65ba9111be05ebe.tar.gz
rails-d1317ae08eb755c55df5d21af65ba9111be05ebe.tar.bz2
rails-d1317ae08eb755c55df5d21af65ba9111be05ebe.zip
Update configuration guide about ActiveRecord's config option.
Diffstat (limited to 'guides/source/configuring.md')
-rw-r--r--guides/source/configuring.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index bd82035408..251b038ec9 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -368,6 +368,11 @@ All these configuration options are delegated to the `I18n` library.
has_many relationships to be displayed with an index as well as the error.
Defaults to `false`.
+* `config.active_record.use_schema_cache_dump` enables users to get schema cache information
+ from `db/schema_cache.yml` (generated by `bin/rails db:schema:cache:dump`), instead of
+ having to send a query to the database to get this information.
+ Defaults to `true`.
+
The MySQL adapter adds one additional configuration option:
* `ActiveRecord::ConnectionAdapters::Mysql2Adapter.emulate_booleans` controls whether Active Record will consider all `tinyint(1)` columns as booleans. Defaults to `true`.