Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
[akkoma] / priv / repo / migrations / 20170701142005_add_actor_index_to_activity.exs
1 defmodule Pleroma.Repo.Migrations.AddActorIndexToActivity do
2 use Ecto.Migration
3
4 def change do
5 create_if_not_exists index(:activities, ["(data->>'actor')", "inserted_at desc"], name: :activities_actor_index)
6 end
7 end