7cc67d8ef2c54d9035e107cb2d90babdb487ce92
[akkoma] / repo / migrations / 20211126191138_add_suggestions.exs
1 defmodule Pleroma.Repo.Migrations.AddSuggestions do
2 use Ecto.Migration
3
4 def change do
5 alter table(:users) do
6 add(:is_suggested, :boolean, default: false, null: false)
7 end
8
9 create_if_not_exists(index(:users, [:is_suggested]))
10 end
11 end