forked from YokaiRick/akkoma
Simplify migration
This commit is contained in:
parent
d35b6254b4
commit
0faf8dbef8
1 changed files with 1 additions and 7 deletions
|
@ -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 a new issue