discourse/db/migrate/20200820232017_drop_idx_regular_post_search_data.rb
Guo Xiang Tan f4a0d200ee
DEV: Drop search index on non-pm posts take 2.
Follow-up to 87de8948c0719d259a5420ca707c4520474b0e88
2020-08-21 07:27:37 +08:00

16 lines
302 B
Ruby

# frozen_string_literal: true
class DropIdxRegularPostSearchData < ActiveRecord::Migration[6.0]
disable_ddl_transaction!
def up
execute <<~SQL
DROP INDEX CONCURRENTLY IF EXISTS idx_regular_post_search_data
SQL
end
def down
raise ActiveRecord::IrreversibleMigration
end
end