From: Mark Felder Date: Sun, 28 Feb 2021 15:04:29 +0000 (-0600) Subject: Simplify migration X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=0faf8dbef8f0d77fdd42b36ade4d55c42f0ccc8c;p=akkoma Simplify migration --- diff --git a/priv/repo/migrations/20210218223811_add_disclose_client_to_users.exs b/priv/repo/migrations/20210218223811_add_disclose_client_to_users.exs index c6b6fe7b2..37c5776ff 100644 --- a/priv/repo/migrations/20210218223811_add_disclose_client_to_users.exs +++ b/priv/repo/migrations/20210218223811_add_disclose_client_to_users.exs @@ -1,15 +1,9 @@ defmodule Pleroma.Repo.Migrations.AddDiscloseClientToUsers do use Ecto.Migration - def up do + def change do alter table(:users) do add(:disclose_client, :boolean, default: true) end end - - def down do - alter table(:users) do - remove(:disclose_client) - end - end end