diff options
author | Satoshi Ebisawa <e.satoshi@gmail.com> | 2013-06-21 17:27:55 +0900 |
---|---|---|
committer | Satoshi Ebisawa <e.satoshi@gmail.com> | 2013-06-21 17:27:55 +0900 |
commit | 56ddb8917d62681c7e056f5386305d32c2484ba5 (patch) | |
tree | 20f42e6bae70f07ccca47c01cd3a787e808a44c8 | |
parent | 50311f1391ddd8e0349d74eb57f04b7e0045a27d (diff) | |
download | rails-56ddb8917d62681c7e056f5386305d32c2484ba5.tar.gz rails-56ddb8917d62681c7e056f5386305d32c2484ba5.tar.bz2 rails-56ddb8917d62681c7e056f5386305d32c2484ba5.zip |
Fix documents for create_join_table
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 4 | ||||
-rw-r--r-- | guides/source/migrations.md | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 3ac55a0f11..9a1923dec5 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -214,8 +214,8 @@ module ActiveRecord # 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) diff --git a/guides/source/migrations.md b/guides/source/migrations.md index eb0cfd9451..508e52a77c 100644 --- a/guides/source/migrations.md +++ b/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 ``` |