aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorFrederick Cheung <frederick.cheung@gmail.com>2008-09-07 19:13:27 +0100
committerFrederick Cheung <frederick.cheung@gmail.com>2008-09-07 19:13:27 +0100
commit67f50bd42459fe47f16f5266fceb1ab1c1d86404 (patch)
treed6cf525ca7036e73953deaf6c43ef4bda8fbd1d2 /railties
parent2643be064230ebdb9b7e7b328deea053f88a159f (diff)
downloadrails-67f50bd42459fe47f16f5266fceb1ab1c1d86404.tar.gz
rails-67f50bd42459fe47f16f5266fceb1ab1c1d86404.tar.bz2
rails-67f50bd42459fe47f16f5266fceb1ab1c1d86404.zip
Fixed typo
Diffstat (limited to 'railties')
-rw-r--r--railties/doc/guides/migrations/writing_a_migration.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/doc/guides/migrations/writing_a_migration.txt b/railties/doc/guides/migrations/writing_a_migration.txt
index a8c1a78e07..d65e7dba07 100644
--- a/railties/doc/guides/migrations/writing_a_migration.txt
+++ b/railties/doc/guides/migrations/writing_a_migration.txt
@@ -115,7 +115,7 @@ will create a `category_id` column of the appropriate type. Note that you pass t
[source, ruby]
---------------------
create_table :products do |t|
- t.references :attachement, :polymorphic => {:default => 'Photo'}
+ t.references :attachment, :polymorphic => {:default => 'Photo'}
end
---------------------
will add an `attachment_id` column and a string `attachment_type` column with a default value of 'Photo'.