Add option to modify HTTP pool size
[akkoma] / priv / repo / migrations / 20190412052952_add_user_info_fields.exs
1 defmodule Pleroma.Repo.Migrations.AddEmailNotificationsToUserInfo do
2 use Ecto.Migration
3
4 def up do
5 execute("
6 UPDATE users
7 SET info = info || '{
8 \"email_notifications\": {
9 \"digest\": false
10 }
11 }'")
12 end
13
14 def down do
15 execute("
16 UPDATE users
17 SET info = info - 'email_notifications'
18 ")
19 end
20 end