aboutsummaryrefslogtreecommitdiffstats
path: root/railties/CHANGELOG.md
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2019-04-16 11:42:18 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2019-04-19 20:08:29 +0530
commit8b4d344815655027d9f7584c0a59271dce8f1d5a (patch)
treecf98e4e0c22a1584fb574d10ef18cae56374eb36 /railties/CHANGELOG.md
parent10da0a27512e108a5cde3eeba774b01c15f6c43a (diff)
downloadrails-8b4d344815655027d9f7584c0a59271dce8f1d5a.tar.gz
rails-8b4d344815655027d9f7584c0a59271dce8f1d5a.tar.bz2
rails-8b4d344815655027d9f7584c0a59271dce8f1d5a.zip
Add `null: false` constraint by default for `belongs_to` associations
- Also deprecate passing {required} to the model generator. - Also made sure the global config `belongs_to_required_by_default` is applied correctly to the model generator for `null: false` option.
Diffstat (limited to 'railties/CHANGELOG.md')
-rw-r--r--railties/CHANGELOG.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md
index 109c4836d5..78a94f7c28 100644
--- a/railties/CHANGELOG.md
+++ b/railties/CHANGELOG.md
@@ -1,3 +1,10 @@
+* `null: false` is set in the migrations by default for column pointed by
+ `belongs_to` / `references` association generated by model generator.
+
+ Also deprecate passing {required} to the model generator.
+
+ *Prathamesh Sonpatki*
+
* New applications get `config.cache_classes = false` in `config/environments/test.rb`
unless `--skip-spring`.