summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20170912114248_add_context_index.exs
blob: 83c58513605cca887e2a86d811095e0d35eaeb49 (plain)
1
2
3
4
5
6
7
8
defmodule Pleroma.Repo.Migrations.AddContextIndex do
  use Ecto.Migration
  @disable_ddl_transaction true

  def change do
    create index(:activities, ["(data->>'type')", "(data->>'context')"], name: :activities_context_index, concurrently: true)
  end
end