From f718e52bcce02bc137263ead3a9d9f5df1c42c37 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Tue, 12 Jan 2016 09:08:18 +0100 Subject: [PATCH] add migration versioning example to the changelog. [ci skip] Closes #23021. --- activerecord/CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- GitLab