diff options
author | Frederick Cheung <frederick.cheung@gmail.com> | 2008-09-07 19:13:27 +0100 |
---|---|---|
committer | Frederick Cheung <frederick.cheung@gmail.com> | 2008-09-07 19:13:27 +0100 |
commit | 67f50bd42459fe47f16f5266fceb1ab1c1d86404 (patch) | |
tree | d6cf525ca7036e73953deaf6c43ef4bda8fbd1d2 | |
parent | 2643be064230ebdb9b7e7b328deea053f88a159f (diff) | |
download | rails-67f50bd42459fe47f16f5266fceb1ab1c1d86404.tar.gz rails-67f50bd42459fe47f16f5266fceb1ab1c1d86404.tar.bz2 rails-67f50bd42459fe47f16f5266fceb1ab1c1d86404.zip |
Fixed typo
-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'. |