mastodon/db/migrate/20190522043937_add_chat_and...

7 lines
243 B
Ruby

class AddChatAndLocalIndexesToStatuses < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def change
add_index :statuses, [:account_id, :id, :visibility], where: 'visibility IN (0, 1, 2, 4, 5)', algorithm: :concurrently
end
end