Simplify migration

This commit is contained in:
Mark Felder 2021-02-28 09:04:29 -06:00
parent d35b6254b4
commit 0faf8dbef8

View 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