2aeb778ae976e5ab01307aae006a93708226ef67
[anni] / priv / repo / migrations / 20180325172351_add_follower_address_index_to_users.exs
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Repo.Migrations.AddFollowerAddressIndexToUsers do
6   use Ecto.Migration
7
8   @disable_ddl_transaction true
9   def change do
10     create(index(:users, [:follower_address], concurrently: true))
11     create(index(:users, [:following], concurrently: true, using: :gin))
12   end
13 end