akkoma/priv/repo/migrations/20190127151220_add_activiti...

13 lines
255 B
Elixir

defmodule Pleroma.Repo.Migrations.AddActivitiesLikesIndex do
use Ecto.Migration
def change do
create(
index(:activities, ["((data #> '{\"object\",\"likes\"}'))"],
name: :activities_likes,
using: :gin
)
)
end
end