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

  @disable_ddl_transaction true

  def change do
    create(
      index(:activities, ["(data #> '{\"object\",\"tag\"}')"],
        concurrently: true,
        using: :gin,
        name: :activities_tags
      )
    )
  end
end