2024-03-03 22:50:01 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
class TopicIdOnIncomingEmailIndex < ActiveRecord::Migration[7.0]
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
2024-03-04 03:52:20 -05:00
|
|
|
def up
|
|
|
|
remove_index :incoming_emails, :topic_id, if_exists: true
|
2024-03-03 22:50:01 -05:00
|
|
|
add_index :incoming_emails, :topic_id, algorithm: :concurrently
|
|
|
|
end
|
2024-03-04 03:52:20 -05:00
|
|
|
|
|
|
|
def down
|
|
|
|
raise ActiveRecord::IrreversibleMigration
|
|
|
|
end
|
2024-03-03 22:50:01 -05:00
|
|
|
end
|