aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2018-03-27 11:41:12 -0500
committerGitHub <noreply@github.com>2018-03-27 11:41:12 -0500
commit7b668e2d42cb281b634f0222f6090812acba6b15 (patch)
treefff63f513118722efc7b7f4ddec9a090d627c7fc /guides
parent1518457a67781f44276044e325aaaa97c9988741 (diff)
parentf6e612b2723ca7ae730ba3e98267c19356b386b3 (diff)
downloadrails-7b668e2d42cb281b634f0222f6090812acba6b15.tar.gz
rails-7b668e2d42cb281b634f0222f6090812acba6b15.tar.bz2
rails-7b668e2d42cb281b634f0222f6090812acba6b15.zip
Merge pull request #32299 from davidstosik/expose-fk-ignore-pattern
Expose foreign key name ignore pattern in configuration
Diffstat (limited to 'guides')
-rw-r--r--guides/source/configuring.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index 368b74f708..8bdba4b3de 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -400,10 +400,16 @@ by adding the following to your `application.rb` file:
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
```
-The schema dumper adds one additional configuration option:
+The schema dumper adds two additional configuration options:
* `ActiveRecord::SchemaDumper.ignore_tables` accepts an array of tables that should _not_ be included in any generated schema file.
+* `ActiveRecord::SchemaDumper.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}$/`.
+
### Configuring Action Controller
`config.action_controller` includes a number of configuration settings: