提交 1d10b4bd 编写于 作者: A Abdelkader Boudih

Merge pull request #19153 from stephenminded/docs_fix_polymorphic_index

[docs fix] Indexing a polymorphic assoc adds index on type and id
......@@ -460,7 +460,7 @@ class CreatePictures < ActiveRecord::Migration
t.timestamps null: false
end
add_index :pictures, :imageable_id
add_index :pictures, [:imageable_id, :imageable_type]
end
end
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册