Simplify migration

This commit is contained in:
Mark Felder 2021-02-28 09:04:29 -06:00
parent d35b6254b4
commit 0faf8dbef8
1 changed files with 1 additions and 7 deletions

View File

@ -1,15 +1,9 @@
defmodule Pleroma.Repo.Migrations.AddDiscloseClientToUsers do defmodule Pleroma.Repo.Migrations.AddDiscloseClientToUsers do
use Ecto.Migration use Ecto.Migration
def up do def change do
alter table(:users) do alter table(:users) do
add(:disclose_client, :boolean, default: true) add(:disclose_client, :boolean, default: true)
end end
end end
def down do
alter table(:users) do
remove(:disclose_client)
end
end
end end