mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
974b1b79ce
* Add bell button Fix #4890 * Remove duplicate type from post-deployment migration * Fix legacy class type mappings * Improve query performance with better index * Fix validation * Remove redundant index from notifications
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
|