Permalink
Browse files

Fixed typo

  • Loading branch information...
1 parent 2643be0 commit 67f50bd42459fe47f16f5266fceb1ab1c1d86404 @fcheung fcheung committed Sep 7, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 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'.

0 comments on commit 67f50bd

Please sign in to comment.