summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20180221210540_make_following_postgres_array.exs
diff options
context:
space:
mode:
Diffstat (limited to 'priv/repo/migrations/20180221210540_make_following_postgres_array.exs')
-rw-r--r--priv/repo/migrations/20180221210540_make_following_postgres_array.exs4
1 files changed, 3 insertions, 1 deletions
diff --git a/priv/repo/migrations/20180221210540_make_following_postgres_array.exs b/priv/repo/migrations/20180221210540_make_following_postgres_array.exs
index 98ca7d9d7..5a8f8f669 100644
--- a/priv/repo/migrations/20180221210540_make_following_postgres_array.exs
+++ b/priv/repo/migrations/20180221210540_make_following_postgres_array.exs
@@ -1,7 +1,7 @@
defmodule Pleroma.Repo.Migrations.MakeFollowingPostgresArray do
use Ecto.Migration
- def change do
+ def up do
alter table(:users) do
add :following_temp, {:array, :string}
end
@@ -15,4 +15,6 @@ defmodule Pleroma.Repo.Migrations.MakeFollowingPostgresArray do
end
rename table(:users), :following_temp, to: :following
end
+
+ def down, do: :ok
end