Add group field to User.

This commit is contained in:
eal 2018-02-05 22:57:34 +02:00
parent 4c5165e840
commit 8b6e54c7ff
2 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,7 @@ defmodule Pleroma.User do
field :info, :map, default: %{}
field :follower_address, :string
has_many :notifications, Notification
field :group, :boolean, default: false
timestamps()
end

View File

@ -0,0 +1,9 @@
defmodule Pleroma.Repo.Migrations.AddGroupField do
use Ecto.Migration
def change do
alter table(:users) do
add :group, :boolean, default: false
end
end
end