Permalink
Browse files

Merge pull request #11040 from satococoa/fix-create_join_table-document

Fix documents for create_join_table [ci skip]
  • Loading branch information...
2 parents 27139ae + 56ddb89 commit 12fe66b56479abc2ca399c002d38a7e81fce2eb2 @carlosantoniodasilva carlosantoniodasilva committed Jun 21, 2013
@@ -214,8 +214,8 @@ def create_table(table_name, options = {})
# its block form to do so yourself:
#
# create_join_table :products, :categories do |t|
- # t.index :products
- # t.index :categories
+ # t.index :product_id
+ # t.index :category_id
# end
#
# ====== Add a backend specific option to the generated SQL (MySQL)
@@ -390,8 +390,8 @@ will create a `categorization` table.
```ruby
create_join_table :products, :categories do |t|
- t.index :products
- t.index :categories
+ t.index :product_id
+ t.index :category_id
end
```

0 comments on commit 12fe66b

Please sign in to comment.