akkoma/priv/repo/migrations/20190405160700_add_index_on...

13 lines
240 B
Elixir

defmodule Pleroma.Repo.Migrations.AddIndexOnSubscribers do
use Ecto.Migration
def change do
create(
index(:users, ["(info->'subscribers')"],
name: :users_subscribers_index,
using: :gin
)
)
end
end