1 defmodule Pleroma.Repo.Migrations.AddChatAcceptanceToUsers do
6 add(:accepts_chat_messages, :boolean, nullable: true)
9 execute("update users set accepts_chat_messages = true where local = true")
13 alter table(:users) do
14 remove(:accepts_chat_messages)