提交 f718e52b 编写于 作者: Y Yves Senn

add migration versioning example to the changelog. [ci skip]

Closes #23021.
上级 d16645a3
...@@ -89,6 +89,14 @@ ...@@ -89,6 +89,14 @@
defaults without breaking existing migrations, or forcing them to be defaults without breaking existing migrations, or forcing them to be
rewritten through a deprecation cycle. 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* *Matthew Draper*, *Ravil Bayramgalin*
* Use bind params for `limit` and `offset`. This will generate significantly * Use bind params for `limit` and `offset`. This will generate significantly
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册