~cytrogen/masto-fe

ref: 67055b034300393bd9a345bc057e86baa848ae35 masto-fe/db/migrate/20171226094803_more_faster_index_on_notifications.rb -rw-r--r-- 315 bytes
67055b03 — Claire Fix import order inconsistencies (#2289) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
class MoreFasterIndexOnNotifications < ActiveRecord::Migration[5.2]
  disable_ddl_transaction!

  def change
    add_index :notifications, [:account_id, :id], order: { id: :desc }, algorithm: :concurrently
    remove_index :notifications, name: :index_notifications_on_id_and_account_id_and_activity_type
  end
end