Browse files

Fix documents for create_join_table

  • Loading branch information...
1 parent 50311f1 commit 56ddb8917d62681c7e056f5386305d32c2484ba5 @satococoa satococoa committed Jun 21, 2013
View
4 activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -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)
View
4 guides/source/migrations.md
@@ -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 56ddb89

Please sign in to comment.