mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-08-21 07:44:37 +00:00
8 lines
220 B
Ruby
8 lines
220 B
Ruby
|
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
|