Add option to modify HTTP pool size
[akkoma] / priv / repo / migrations / 20170320193800_create_user.exs
index 2d2f7fbf02bc2407b65fa6698b17962c87b9dd8b..e5f6ac52ee48a3d7baa5a059025b3c2ab9089722 100644 (file)
@@ -2,15 +2,14 @@ defmodule Pleroma.Repo.Migrations.CreatePleroma.User do
   use Ecto.Migration
 
   def change do
-    create table(:users) do
-      add :email, :string
-      add :password_hash, :string
-      add :name, :string
-      add :nickname, :string
-      add :bio, :string
+    create_if_not_exists table(:users) do
+      add(:email, :string)
+      add(:password_hash, :string)
+      add(:name, :string)
+      add(:nickname, :string)
+      add(:bio, :string)
 
       timestamps()
     end
-
   end
 end