Simplify migration
This commit is contained in:
parent
d35b6254b4
commit
0faf8dbef8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user