aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/4_0_release_notes.md
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2012-12-19 14:46:16 -0500
committerMarc-Andre Lafortune <github@marc-andre.ca>2012-12-21 13:56:16 -0500
commita81845f26864d076970e706863c766aead432672 (patch)
treec5bd5f97be26a533877e043868e0995f30fba1b9 /guides/source/4_0_release_notes.md
parent06c7ba881d008be82d62656f297d6a3c09a889c5 (diff)
downloadrails-a81845f26864d076970e706863c766aead432672.tar.gz
rails-a81845f26864d076970e706863c766aead432672.tar.bz2
rails-a81845f26864d076970e706863c766aead432672.zip
Update Migration and 4.0 Release Guides, Changelogs [#8267]
Diffstat (limited to 'guides/source/4_0_release_notes.md')
-rw-r--r--guides/source/4_0_release_notes.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/guides/source/4_0_release_notes.md b/guides/source/4_0_release_notes.md
index dd57787111..55ac4bca87 100644
--- a/guides/source/4_0_release_notes.md
+++ b/guides/source/4_0_release_notes.md
@@ -165,6 +165,19 @@ Please refer to the [Changelog](https://github.com/rails/rails/blob/master/railt
### Notable changes
+* Improve ways to write `change` migrations, making the old `up` & `down` methods no longer necessary.
+
+ * The methods `drop_table` and `remove_column` are now reversible, as long as the necessary information is given.
+ The method `remove_column` used to accept multiple column names; instead use `remove_columns` (which is not revertible).
+ 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)
+
+ * New method `revert` will revert a whole migration or the given block.
+ If migrating down, the given migration / block is run normally.
+ See the [Guide on Migration](https://github.com/rails/rails/blob/master/guides/source/migrations.md#reverting-previous-migrations)
+
* Adds some metadata columns to `schema_migrations` table.
* `migrated_at`