1
0
Fork 1
mirror of https://github.com/mastodon/mastodon.git synced 2024-12-24 01:52:41 +00:00
mastodon/db/migrate/20170829215220_remove_status_pins_account_index.rb
Eugen Rochko fcca31350d Remove unneccesary indices ()
We only look up status_pins by account_id, or account_id and status_id,
never by status_id
2017-08-30 05:04:20 +02:00

7 lines
174 B
Ruby

class RemoveStatusPinsAccountIndex < ActiveRecord::Migration[5.1]
def change
remove_index :status_pins, :account_id
remove_index :status_pins, :status_id
end
end