mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
add migration versioning example to the changelog. [ci skip]
Closes #23021.
This commit is contained in:
parent
d16645a37a
commit
f718e52bcc
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue