2023-07-12 02:47:08 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-03-27 09:09:10 -05:00
|
|
|
class AddIndexAccountAndReblogOfIdToStatuses < ActiveRecord::Migration[5.2]
|
2017-11-27 13:22:27 -06:00
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
# This index has been superseded by migration 20171125185353
|
|
|
|
# add_index :statuses, [:account_id, :reblog_of_id], algorithm: :concurrently
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_index :statuses, [:account_id, :reblog_of_id] if index_exists?(:statuses, [:account_id, :reblog_of_id])
|
2017-11-24 07:42:09 -06:00
|
|
|
end
|
|
|
|
end
|