* Test: テストを先に作成 * Fix: テスト不備 * Wip: フレンドサーバーのテストを修正 * Wip: エラーを修正 * 項目のラベリングを修正 * 新しい設定が変更できないのを修正 * Wip: 削除時の処理を修正 * フレンド自動承認設定を削除 * Fix: 申請を受けたドメインのINBOXが空になる問題 * Change: #75 フレンドでないサーバーからのローカル公開を未収載に変換 (#77)
23 lines
637 B
Ruby
23 lines
637 B
Ruby
# frozen_string_literal: true
|
|
|
|
require Rails.root.join('lib', 'mastodon', 'migration_helpers')
|
|
|
|
class AddDeliveryLocalToFriendDomains < ActiveRecord::Migration[7.0]
|
|
include Mastodon::MigrationHelpers
|
|
|
|
disable_ddl_transaction!
|
|
|
|
def up
|
|
safety_assured do
|
|
add_column_with_default :friend_domains, :delivery_local, :boolean, default: true, allow_null: false
|
|
remove_column :friend_domains, :unlocked
|
|
end
|
|
end
|
|
|
|
def down
|
|
safety_assured do
|
|
remove_column :friend_domains, :delivery_local
|
|
add_column_with_default :friend_domains, :unlocked, :boolean, default: false, allow_null: false
|
|
end
|
|
end
|
|
end
|