From 67f50bd42459fe47f16f5266fceb1ab1c1d86404 Mon Sep 17 00:00:00 2001 From: Frederick Cheung Date: Sun, 7 Sep 2008 19:13:27 +0100 Subject: Fixed typo --- railties/doc/guides/migrations/writing_a_migration.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties') 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'. -- cgit v1.2.3