mirror of
https://github.com/mastodon/mastodon.git
synced 2024-05-13 15:42:45 +00:00
10 lines
251 B
Ruby
10 lines
251 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddIndexNotificationsOnType < ActiveRecord::Migration[5.2]
|
|
disable_ddl_transaction!
|
|
|
|
def change
|
|
add_index :notifications, [:account_id, :id, :type], order: { id: :desc }, algorithm: :concurrently
|
|
end
|
|
end
|