aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2016-01-12 09:08:18 +0100
committerYves Senn <yves.senn@gmail.com>2016-01-12 09:08:18 +0100
commitf718e52bcce02bc137263ead3a9d9f5df1c42c37 (patch)
tree95c786bb04879063fc624ff6faea288dc82b35df /activerecord
parentd16645a37a954c5f342c724796c0a5efce7fac15 (diff)
downloadrails-f718e52bcce02bc137263ead3a9d9f5df1c42c37.tar.gz
rails-f718e52bcce02bc137263ead3a9d9f5df1c42c37.tar.bz2
rails-f718e52bcce02bc137263ead3a9d9f5df1c42c37.zip
add migration versioning example to the changelog. [ci skip]
Closes #23021.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/CHANGELOG.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 56ac3b95b3..3de98c1f81 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -89,6 +89,14 @@
defaults without breaking existing migrations, or forcing them to be
rewritten through a deprecation cycle.
+ New migrations specify the Rails version they were written for:
+
+ class AddStatusToOrders < ActiveRecord::Migration[5.0]
+ def change
+ # ...
+ end
+ end
+
*Matthew Draper*, *Ravil Bayramgalin*
* Use bind params for `limit` and `offset`. This will generate significantly