Merge pull request #19159 from stephenminded/docs_fix_polymorphic_index

[docs fix] Composite index is actually [:imageable_type, :imageable_id]
This commit is contained in:
Arthur Nogueira Neves 2015-03-01 23:01:15 -05:00
commit 485e125668

@ -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
```