diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-07-16 02:27:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-16 02:27:02 -0700 |
commit | 4860fcc52213fdd7afb244ed983d9dd14511c7da (patch) | |
tree | 124eddd50c2f3d45e4a16a4a926714c9291156e8 | |
parent | 4d74d4f3548c8309ec56561282f4adb69c30ee70 (diff) | |
parent | 65132b9087937945dde4993112f2f640db3b013b (diff) | |
download | rails-4860fcc52213fdd7afb244ed983d9dd14511c7da.tar.gz rails-4860fcc52213fdd7afb244ed983d9dd14511c7da.tar.bz2 rails-4860fcc52213fdd7afb244ed983d9dd14511c7da.zip |
Merge pull request #25853 from CodingItWrong/remove-reference-indexes-in-docs
Update references generation docs to exclude index
-rw-r--r-- | guides/source/active_record_migrations.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_record_migrations.md b/guides/source/active_record_migrations.md index f914122242..a45becf670 100644 --- a/guides/source/active_record_migrations.md +++ b/guides/source/active_record_migrations.md @@ -241,7 +241,7 @@ generates ```ruby class AddUserRefToProducts < ActiveRecord::Migration[5.0] def change - add_reference :products, :user, index: true, foreign_key: true + add_reference :products, :user, foreign_key: true end end ``` @@ -313,7 +313,7 @@ will produce a migration that looks like this class AddDetailsToProducts < ActiveRecord::Migration[5.0] def change add_column :products, :price, :decimal, precision: 5, scale: 2 - add_reference :products, :supplier, polymorphic: true, index: true + add_reference :products, :supplier, polymorphic: true end end ``` |