aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorRich <rich@fishpercolator.co.uk>2017-11-14 19:24:00 +0000
committerRafael França <rafaelmfranca@gmail.com>2017-11-14 14:24:00 -0500
commitdf82237a45e930a7ab53b95bee78a3f34c5b92fb (patch)
tree824f42d4e01f5f1864ba3c0150753df9cdd88730 /activerecord/CHANGELOG.md
parent53574ff988ce7927ae3cfeb8d7ed21734680c26c (diff)
downloadrails-df82237a45e930a7ab53b95bee78a3f34c5b92fb.tar.gz
rails-df82237a45e930a7ab53b95bee78a3f34c5b92fb.tar.bz2
rails-df82237a45e930a7ab53b95bee78a3f34c5b92fb.zip
Add a #populate method to migrations (#31082)
* Add a #populate method to migrations * Address rubocop issues * Rename to #up_only and use #execute in the examples intead of the model * Update CHANGELOG [Rich Daley & Rafael Mendonça França]
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 57ec37c75b..2088b018d7 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,8 @@
+* Add `#only_up` to database migrations for code that is only relevant when
+ migrating up, e.g. populating a new column.
+
+ *Rich Daley*
+
* Require raw SQL fragments to be explicitly marked when used in
relation query methods.