aboutsummaryrefslogtreecommitdiffstats
path: root/railties/CHANGELOG.md
diff options
context:
space:
mode:
authorDerek Prior <derekprior@gmail.com>2014-11-24 21:25:15 -0500
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-11-25 20:22:58 -0200
commit323334a775bb35d901742e4cc39f6fe7b5e53c8f (patch)
treebe2b9444543f5b269b8515a6557e457742f99b73 /railties/CHANGELOG.md
parentac0432cf351d11f9cfaf2eb879388eb8bcf09cd7 (diff)
downloadrails-323334a775bb35d901742e4cc39f6fe7b5e53c8f.tar.gz
rails-323334a775bb35d901742e4cc39f6fe7b5e53c8f.tar.bz2
rails-323334a775bb35d901742e4cc39f6fe7b5e53c8f.zip
Generators add foreign keys on references
If you run a generator such as: ``` rails generate model accounts supplier:references ``` The resulting migration will now add the corresponding foreign key constraint unless the reference was specified to be polymorphic.
Diffstat (limited to 'railties/CHANGELOG.md')
-rw-r--r--railties/CHANGELOG.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md
index aa6b142932..ff6dcac465 100644
--- a/railties/CHANGELOG.md
+++ b/railties/CHANGELOG.md
@@ -1,3 +1,8 @@
+* Generated migrations add the appropriate foreign key constraints to
+ references.
+
+ *Derek Prior*
+
* Deprecate different default for `log_level` in production.
*Godfrey Chan*, *Matthew Draper*