summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20190405160700_add_index_on_subscribers.exs
blob: 232f75c92d8defb3412bdae1b8f201d8f91d558c (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