mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-25 04:53:06 +00:00
Simplify migration
This commit is contained in:
parent
d35b6254b4
commit
0faf8dbef8
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue