Add option to modify HTTP pool size
[akkoma] / priv / repo / migrations / 20180429094642_create_lists.exs
index 9d3ce50b34d1536117ade4825a38ab78bba110e9..e1eb7e4266206d635c8f28c31a9f82fa6e9b4131 100644 (file)
@@ -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