MastoAPI: add lists.

This commit is contained in:
eal 2018-04-29 16:02:46 +03:00
commit a8369db4f2
5 changed files with 223 additions and 2 deletions

View file

@ -0,0 +1,15 @@
defmodule Pleroma.Repo.Migrations.CreateLists do
use Ecto.Migration
def change do
create table(:lists) do
add :user_id, references(:users, on_delete: :delete_all)
add :title, :string
add :following, {:array, :string}
timestamps()
end
create index(:lists, [:user_id])
end
end