Remove unneccesary indices (#4738)
We only look up status_pins by account_id, or account_id and status_id, never by status_id
This commit is contained in:
parent
ee72a39641
commit
fcca31350d
2 changed files with 7 additions and 3 deletions
|
@ -0,0 +1,6 @@
|
|||
class RemoveStatusPinsAccountIndex < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
remove_index :status_pins, :account_id
|
||||
remove_index :status_pins, :status_id
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue