akkoma/priv/repo/migrations/20211126191138_add_suggestions.exs
2021-11-26 15:32:01 -06:00

11 lines
257 B
Elixir

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