aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-04-07 16:47:28 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-04-07 16:47:28 +0530
commite0672a8e3b900190bac59645465accbab7e08f52 (patch)
tree1a3f3471822766aa0a368150e4c69740367c412c /guides/source
parentc007d871e6d46d58c53aa18cdb6e0ca484eecdf7 (diff)
downloadrails-e0672a8e3b900190bac59645465accbab7e08f52.tar.gz
rails-e0672a8e3b900190bac59645465accbab7e08f52.tar.bz2
rails-e0672a8e3b900190bac59645465accbab7e08f52.zip
copy editing [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/migrations.textile9
1 files changed, 4 insertions, 5 deletions
diff --git a/guides/source/migrations.textile b/guides/source/migrations.textile
index a565974227..0405f45fa8 100644
--- a/guides/source/migrations.textile
+++ b/guides/source/migrations.textile
@@ -51,7 +51,7 @@ end
This migration adds a table called +products+ with a string column called +name+
and a text column called +description+. A primary key column called +id+ will
-also be added, however since this is the default we do not need to explicitly write for this.
+also be added, however since this is the default we do not need to explicitly specify it.
The timestamp columns +created_at+ and +updated_at+ which Active Record
populates automatically will also be added. Reversing this migration is as
simple as dropping the table.
@@ -65,7 +65,7 @@ class AddReceiveNewsletterToUsers < ActiveRecord::Migration
change_table :users do |t|
t.boolean :receive_newsletter, :default => false
end
- User.update_all :receive_newsletter => true
+ User.update_all :receive_newsletter => true
end
def down
@@ -636,9 +636,8 @@ $ rake db:migrate:up VERSION=20080906120000
</shell>
will run the +up+ method from the 20080906120000 migration. This task will first
-check whether the migration is already performed, so for example
- +db:migrate:up VERSION=20080906120000+ will do nothing if Active Record believes
- that 20080906120000 has already been run.
+check whether the migration is already performed and will do nothing if Active Record believes
+that it has already been run.
h4. Changing the output of running migrations