diff options
author | Steve Lounsbury <steve.lounsbury@gmail.com> | 2015-03-01 21:38:41 -0500 |
---|---|---|
committer | Steve Lounsbury <steve.lounsbury@gmail.com> | 2015-03-01 21:38:41 -0500 |
commit | ec85f9da29397637e3880d47bfd0db2fd684712e (patch) | |
tree | 08d86a2cc29d6ab7bbd84fc9f37af5c962c33338 /guides/source | |
parent | 683ad0b471c968800a9cbe805eac6199c948a806 (diff) | |
download | rails-ec85f9da29397637e3880d47bfd0db2fd684712e.tar.gz rails-ec85f9da29397637e3880d47bfd0db2fd684712e.tar.bz2 rails-ec85f9da29397637e3880d47bfd0db2fd684712e.zip |
Composite index is [:imageable_type, :imageable_id] [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/association_basics.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md index 52e154ad18..280c3008e9 100644 --- a/guides/source/association_basics.md +++ b/guides/source/association_basics.md @@ -460,7 +460,7 @@ class CreatePictures < ActiveRecord::Migration t.timestamps null: false end - add_index :pictures, [:imageable_id, :imageable_type] + add_index :pictures, [:imageable_type, :imageable_id] end end ``` |