Add basic fields to support remote users.

This commit is contained in:
Roger Braun 2017-04-24 08:48:52 +02:00
parent 7424310e14
commit 43d7a4b2cf
2 changed files with 12 additions and 0 deletions

View file

@ -15,6 +15,8 @@ defmodule Pleroma.User do
field :following, { :array, :string }, default: []
field :ap_id, :string
field :avatar, :map
field :local, :boolean, default: true
field :info, :map
timestamps()
end

View file

@ -0,0 +1,10 @@
defmodule Pleroma.Repo.Migrations.AddFieldsToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add :local, :boolean, default: true
add :info, :map
end
end
end