Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
0faf8dbe
Commit
0faf8dbe
authored
Feb 28, 2021
by
feld
Browse files
Simplify migration
parent
d35b6254
Pipeline
#35231
passed with stages
in 9 minutes and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
priv/repo/migrations/20210218223811_add_disclose_client_to_users.exs
View file @
0faf8dbe
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment