Add option to modify HTTP pool size
[akkoma] / priv / repo / migrations / 20191008132427_drop_users_following.exs
1 defmodule Pleroma.Repo.Migrations.DropUsersFollowing do
2 use Ecto.Migration
3
4 # had to disable these to be able to restore `following` index concurrently
5 # https://hexdocs.pm/ecto_sql/Ecto.Migration.html#index/3-adding-dropping-indexes-concurrently
6 @disable_ddl_transaction true
7 @disable_migration_lock true
8
9 def change do
10 drop(index(:users, [:following], concurrently: true, using: :gin))
11
12 alter table(:users) do
13 remove(:following, {:array, :string}, default: [])
14 end
15 end
16 end