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:
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
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user