1 defmodule Pleroma.Repo.Migrations.AddChatAcceptanceToUsers do
6 add(:accepts_chat_messages, :boolean, nullable: false, default: false)
9 # Looks stupid but makes the update much faster
10 execute("update users set accepts_chat_messages = local where local = true")