discourse/db/migrate/20210824203421_remove_post_timings_summary_index.rb
Daniel Waterworth d11f19f099
PERF: Remove redundant post_timings_summary index (#14164)
It's redundant since post_timings_unique exists which has a superset of
the columns with the same prefix.
2021-08-26 10:50:34 -05:00

8 lines
233 B
Ruby

# frozen_string_literal: true
class RemovePostTimingsSummaryIndex < ActiveRecord::Migration[6.1]
def change
remove_index :post_timings, column: [:topic_id, :post_number], name: :post_timings_summary, if_exists: true
end
end