2023-07-12 07:47:08 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-03-27 14:09:10 +00:00
|
|
|
class AddIndexOnStatusesForApiV1AccountsAccountIdStatuses < ActiveRecord::Migration[5.2]
|
2018-01-09 14:00:19 +00:00
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def change
|
|
|
|
safety_assured do
|
|
|
|
add_index :statuses, [:account_id, :id, :visibility, :updated_at], order: { id: :desc }, algorithm: :concurrently, name: :index_statuses_20180106
|
|
|
|
end
|
2024-09-03 15:32:22 +00:00
|
|
|
remove_index :statuses, [:account_id, :id], name: :index_statuses_on_account_id_id
|
2018-01-09 14:00:19 +00:00
|
|
|
end
|
|
|
|
end
|