Add group field to User.
This commit is contained in:
parent
4c5165e840
commit
8b6e54c7ff
|
@ -22,6 +22,7 @@ defmodule Pleroma.User do
|
||||||
field :info, :map, default: %{}
|
field :info, :map, default: %{}
|
||||||
field :follower_address, :string
|
field :follower_address, :string
|
||||||
has_many :notifications, Notification
|
has_many :notifications, Notification
|
||||||
|
field :group, :boolean, default: false
|
||||||
|
|
||||||
timestamps()
|
timestamps()
|
||||||
end
|
end
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue