mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
'Reversible' ->active_record_migrations [ci skip]
Reversible method documentation moved from migrations.md to active_record_migrations.md
This commit is contained in:
parent
1fc2e70495
commit
f57fd2f5d5
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ Please refer to the [Changelog](https://github.com/rails/rails/blob/4-0-stable/a
|
|||
The method `change_table` is also reversible, as long as its block doesn't call `remove`, `change` or `change_default`
|
||||
|
||||
* New method `reversible` makes it possible to specify code to be run when migrating up or down.
|
||||
See the [Guide on Migration](https://github.com/rails/rails/blob/master/guides/source/migrations.md#using-the-reversible-method)
|
||||
See the [Guide on Migration](https://github.com/rails/rails/blob/master/guides/source/active_record_migrations.md#using-reversible)
|
||||
|
||||
* New method `revert` will revert a whole migration or the given block.
|
||||
If migrating down, the given migration / block is run normally.
|
||||
|
|
Loading…
Reference in a new issue