Gitlab: Run benchmark in CI.
[akkoma] / priv / repo / migrations / 20180829082446_add_recipients_to_and_cc_fields_to_activities.exs
1 defmodule Pleroma.Repo.Migrations.AddRecipientsToAndCcFieldsToActivities do
2 use Ecto.Migration
3
4 def change do
5 alter table(:activities) do
6 add :recipients_to, {:array, :string}
7 add :recipients_cc, {:array, :string}
8 end
9
10 create_if_not_exists index(:activities, [:recipients_to], using: :gin)
11 create_if_not_exists index(:activities, [:recipients_cc], using: :gin)
12 end
13 end