mastodon/db/migrate/20250908181205_remove_reverted_conversation_changes.rb
2025-09-08 18:22:52 +02:00

12 lines
406 B
Ruby

# frozen_string_literal: true
class RemoveRevertedConversationChanges < ActiveRecord::Migration[8.0]
def up
remove_index :statuses, :conversation_id if index_exists?(:statuses, :conversation_id)
safety_assured { remove_column :conversations, :parent_status_id, if_exists: true }
safety_assured { remove_column :conversations, :parent_account_id, if_exists: true }
end
def down; end
end