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 e96704a commit c578278dcdb1848f5f2e38c622f5265bd3d22f19 @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 c578278

Please sign in to comment.