summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20211126191138_add_suggestions.exs
blob: 7cc67d8ef2c54d9035e107cb2d90babdb487ce92 (plain)
1
2
3
4
5
6
7
8
9
10
11
defmodule Pleroma.Repo.Migrations.AddSuggestions do
  use Ecto.Migration

  def change do
    alter table(:users) do
      add(:is_suggested, :boolean, default: false, null: false)
    end

    create_if_not_exists(index(:users, [:is_suggested]))
  end
end