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...
1 parent 257d664 commit 5a31d6340f0ee9f3ff071206b114c0d0a5e52b8e @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)
@@ -392,8 +392,8 @@ will create the `product_id` and `category_id` with the `:null` option as
```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 5a31d63

Please sign in to comment.