Simplify migration
authorMark Felder <feld@feld.me>
Sun, 28 Feb 2021 15:04:29 +0000 (09:04 -0600)
committerMark Felder <feld@feld.me>
Sun, 28 Feb 2021 15:22:44 +0000 (09:22 -0600)
priv/repo/migrations/20210218223811_add_disclose_client_to_users.exs

index c6b6fe7b2a27395cc0a98bb711c723a9d58cd51c..37c5776ff6591300053fc988a1eb72757bc91c18 100644 (file)
@@ -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