2020-08-20 19:27:28 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-08-20 19:21:34 -04:00
|
|
|
class DropIdxRegularPostSearchData < ActiveRecord::Migration[6.0]
|
2020-08-20 19:27:28 -04:00
|
|
|
disable_ddl_transaction!
|
|
|
|
|
2020-08-20 19:21:34 -04:00
|
|
|
def up
|
|
|
|
execute <<~SQL
|
|
|
|
DROP INDEX CONCURRENTLY IF EXISTS idx_regular_post_search_data
|
|
|
|
SQL
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
raise ActiveRecord::IrreversibleMigration
|
|
|
|
end
|
|
|
|
end
|