aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorDavid Stosik <david.stosik+git-noreply@gmail.com>2018-03-20 18:08:11 +0000
committerDavid Stosik <david.stosik+git-noreply@gmail.com>2018-03-20 18:08:11 +0000
commit864e500817e7bcda4753f001ba862f7adbdb1c15 (patch)
tree5efd83cbf9542a99b42c46ae84dc4ea8ee74a20c /guides
parentd3fd4e4ed9bae3775969c5c913b15bbd927e9ad9 (diff)
downloadrails-864e500817e7bcda4753f001ba862f7adbdb1c15.tar.gz
rails-864e500817e7bcda4753f001ba862f7adbdb1c15.tar.bz2
rails-864e500817e7bcda4753f001ba862f7adbdb1c15.zip
Document config.active_record.fk_ignore_pattern
Diffstat (limited to 'guides')
-rw-r--r--guides/source/configuring.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index 368b74f708..8c328f46c7 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -374,6 +374,12 @@ All these configuration options are delegated to the `I18n` library.
having to send a query to the database to get this information.
Defaults to `true`.
+* `config.active_record.fk_ignore_pattern` allows setting a different regular
+ expression that will be used to decide whether a foreign key's name should be
+ dumped to db/schema.rb or not. By default, foreign key names starting with
+ `fk_rails_` are not exported to the database schema dump.
+ Defaults to `/^fk_rails_[0-9a-f]{10}$/`.
+
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`.