aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2015-05-13 21:17:14 -0700
committerZachary Scott <e@zzak.io>2015-05-13 21:17:14 -0700
commit987a45307f8ca0b8b6cbab3763180cbe4eee18b7 (patch)
tree2716b094ffc0127f1e53ce9a4bbef613b54c11c3 /guides
parentbb9e8ca32f3f35481fc6e516f1e25a6329126b6d (diff)
parent4cebcaeb2fd394603ac112236da19e8f3876d658 (diff)
downloadrails-987a45307f8ca0b8b6cbab3763180cbe4eee18b7.tar.gz
rails-987a45307f8ca0b8b6cbab3763180cbe4eee18b7.tar.bz2
rails-987a45307f8ca0b8b6cbab3763180cbe4eee18b7.zip
Merge pull request #20151 from imtayadeway/tw/active-record-migrations-docs
[ci skip] Improve phrasing in AR migrations docs.
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_record_migrations.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_record_migrations.md b/guides/source/active_record_migrations.md
index 7a994cc5de..80b1bde1c7 100644
--- a/guides/source/active_record_migrations.md
+++ b/guides/source/active_record_migrations.md
@@ -554,7 +554,7 @@ or write the `up` and `down` methods instead of using the `change` method.
Complex migrations may require processing that Active Record doesn't know how
to reverse. You can use `reversible` to specify what to do when running a
-migration what else to do when reverting it. For example:
+migration and what else to do when reverting it. For example:
```ruby
class ExampleMigration < ActiveRecord::Migration
@@ -606,7 +606,7 @@ schema, and the `down` method of your migration should revert the
transformations done by the `up` method. In other words, the database schema
should be unchanged if you do an `up` followed by a `down`. For example, if you
create a table in the `up` method, you should drop it in the `down` method. It
-is wise to reverse the transformations in precisely the reverse order they were
+is wise to perform the transformations in precisely the reverse order they were
made in the `up` method. The example in the `reversible` section is equivalent to:
```ruby