summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20180429094642_create_lists.exs
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-10-08 15:16:39 +0300
committerrinpatch <rinpatch@sdf.org>2019-10-08 15:16:39 +0300
commit32808208bef12996f819d21ca2635837aff98cbf (patch)
tree677e6798940b76be29771a9a574f544772c52e6b /priv/repo/migrations/20180429094642_create_lists.exs
parent44e0c5cabb157fe2cfc66af0167547ac51f98ff0 (diff)
downloadpleroma-32808208bef12996f819d21ca2635837aff98cbf.tar.gz
pleroma-32808208bef12996f819d21ca2635837aff98cbf.zip
Enable `mix format` for migrations
Diffstat (limited to 'priv/repo/migrations/20180429094642_create_lists.exs')
-rw-r--r--priv/repo/migrations/20180429094642_create_lists.exs8
1 files changed, 4 insertions, 4 deletions
diff --git a/priv/repo/migrations/20180429094642_create_lists.exs b/priv/repo/migrations/20180429094642_create_lists.exs
index 9d3ce50b3..e1eb7e426 100644
--- a/priv/repo/migrations/20180429094642_create_lists.exs
+++ b/priv/repo/migrations/20180429094642_create_lists.exs
@@ -3,13 +3,13 @@ defmodule Pleroma.Repo.Migrations.CreateLists do
def change do
create_if_not_exists table(:lists) do
- add :user_id, references(:users, on_delete: :delete_all)
- add :title, :string
- add :following, {:array, :string}
+ add(:user_id, references(:users, on_delete: :delete_all))
+ add(:title, :string)
+ add(:following, {:array, :string})
timestamps()
end
- create_if_not_exists index(:lists, [:user_id])
+ create_if_not_exists(index(:lists, [:user_id]))
end
end