diff options
Diffstat (limited to 'railties/doc/guides/migrations/writing_a_migration.txt')
-rw-r--r-- | railties/doc/guides/migrations/writing_a_migration.txt | 2 |
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'. |