diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-04-21 23:04:04 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-04-21 23:04:04 +0530 |
commit | a719843d31042690fa4fa8f55bc8a647d360b2a8 (patch) | |
tree | d7cf910019968511bd33a15ba2c3709a366f23cd /guides/source/migrations.textile | |
parent | ed8108300b2bb96f9f6888188f4fb8cd418ab950 (diff) | |
parent | c670b57f0f9ec4d992f89e62e513ff5b7baf58ac (diff) | |
download | rails-a719843d31042690fa4fa8f55bc8a647d360b2a8.tar.gz rails-a719843d31042690fa4fa8f55bc8a647d360b2a8.tar.bz2 rails-a719843d31042690fa4fa8f55bc8a647d360b2a8.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'guides/source/migrations.textile')
-rw-r--r-- | guides/source/migrations.textile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/migrations.textile b/guides/source/migrations.textile index 1eeb27f3c1..f855072fd8 100644 --- a/guides/source/migrations.textile +++ b/guides/source/migrations.textile @@ -82,6 +82,8 @@ it to default to +false+ for new users, but existing users are considered to have already opted in, so we use the User model to set the flag to +true+ for existing users. +h4. Using the change method + Rails 3.1 makes migrations smarter by providing a new <tt>change</tt> method. This method is preferred for writing constructive migrations (adding columns or tables). The migration knows how to migrate your database and reverse it when |