summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20190411094120_add_index_on_user_info_deactivated.exs
blob: 374e2323d3f665be09fe4ea7cc2ce631aee6d782 (plain)
1
2
3
4
5
6
7
8
9
defmodule Pleroma.Repo.Migrations.AddIndexOnUserInfoDeactivated do
  use Ecto.Migration

  def change do
    create_if_not_exists(
      index(:users, ["(info->'deactivated')"], name: :users_deactivated_index, using: :gin)
    )
  end
end