diff options
author | Josef Šimánek <josef.simanek@gmail.com> | 2015-02-14 03:24:54 +0100 |
---|---|---|
committer | Josef Šimánek <josef.simanek@gmail.com> | 2015-02-21 23:03:10 +0100 |
commit | 6576f7354e50afb79881aaf3a6f50f4e81dfab70 (patch) | |
tree | 9f53674c07731b069c0890fb26ab3d64b4207e8b /guides/source/configuring.md | |
parent | bab3c7c63deee86305d80e24c4ea1124c0ec27d1 (diff) | |
download | rails-6576f7354e50afb79881aaf3a6f50f4e81dfab70.tar.gz rails-6576f7354e50afb79881aaf3a6f50f4e81dfab70.tar.bz2 rails-6576f7354e50afb79881aaf3a6f50f4e81dfab70.zip |
Require `belongs_to` by default.
Deprecate `required` option in favor of `optional` for belongs_to.
Diffstat (limited to 'guides/source/configuring.md')
-rw-r--r-- | guides/source/configuring.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index ab1cc9306f..4fc1301e06 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -300,6 +300,8 @@ All these configuration options are delegated to the `I18n` library. `config/environments/production.rb` which is generated by Rails. The default value is true if this configuration is not set. +* `config.active_record.belongs_to_required_by_default` is a boolean value and controls whether `belongs_to` association is required by default. + The MySQL adapter adds one additional configuration option: * `ActiveRecord::ConnectionAdapters::MysqlAdapter.emulate_booleans` controls whether Active Record will consider all `tinyint(1)` columns in a MySQL database to be booleans and is true by default. |