提交 683ad0b4 编写于 作者: S Steve Lounsbury

Indexing a polymorphic assoc adds index on type and id [ci skip]

上级 edbcdb95
......@@ -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.
先完成此消息的编辑!
想要评论请 注册