summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20180903114437_users_add_is_moderator_index.exs
blob: ba6b90ea966efd326c6ab9cfb24233ed8da86351 (plain)
1
2
3
4
5
6
7
defmodule Pleroma.Repo.Migrations.UsersAddIsModeratorIndex do
  use Ecto.Migration

  def change do
    create index(:users, ["(info->'is_moderator')"], name: :users_is_moderator_index, using: :gin)
  end
end