summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20190405160700_add_index_on_subscribers.exs
blob: bbf47f72c147f17fb5e8c2d0c5bb390d3174da9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
defmodule Pleroma.Repo.Migrations.AddIndexOnSubscribers do
  use Ecto.Migration

  @disable_ddl_transaction true
  def change do
    create(
      index(:users, ["(info->'subscribers')"],
        name: :users_subscribers_index,
        using: :gin,
        concurrently: true
      )
    )
  end
end