aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorOscar Del Ben <info@oscardelben.com>2012-04-19 10:50:40 +0200
committerOscar Del Ben <info@oscardelben.com>2012-04-19 10:50:40 +0200
commitb4d13ed204dde24088603cccc918efe7e811fc96 (patch)
treeabf749ae9115edd8c2f8720954bb06ac42bdb20d /guides/source
parente44b845b0ec8b3e459ba1386fb355cf25bbf7656 (diff)
downloadrails-b4d13ed204dde24088603cccc918efe7e811fc96.tar.gz
rails-b4d13ed204dde24088603cccc918efe7e811fc96.tar.bz2
rails-b4d13ed204dde24088603cccc918efe7e811fc96.zip
Add "Using the change method" title back to make it stand out
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/migrations.textile2
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