Merge pull request 'Manually define PATH for Arch Linux users in systemd unit' (...
[akkoma] / priv / repo / migrations / 20180606173637_create_apid_host_extraction_index.exs
1 defmodule Pleroma.Repo.Migrations.CreateApidHostExtractionIndex do
2 use Ecto.Migration
3 @disable_ddl_transaction true
4
5 def change do
6 create(
7 index(:activities, ["(split_part(actor, '/', 3))"],
8 concurrently: true,
9 name: :activities_hosts
10 )
11 )
12 end
13 end