projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'release/2.0.6' into 'stable'
[akkoma]
/
priv
/
repo
/
migrations
/
20180429094642_create_lists.exs
1
defmodule Pleroma.Repo.Migrations.CreateLists do
2
use Ecto.Migration
3
4
def change do
5
create_if_not_exists table(:lists) do
6
add(:user_id, references(:users, on_delete: :delete_all))
7
add(:title, :string)
8
add(:following, {:array, :string})
9
10
timestamps()
11
end
12
13
create_if_not_exists(index(:lists, [:user_id]))
14
end
15
end