summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20190405160700_add_index_on_subscribers.exs
blob: 460dafb1b6dd71811667c426c85d4d207d916fb0 (plain)
1
2
3
4
5
6
7
8
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