mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 11:25:24 +00:00
DEV: Remove migration that is no longer required.
Avoid creating the index twice. Follow-up to 628319aad385eb001f900c2c1909448b101b75a2
This commit is contained in:
parent
89fcb75af2
commit
0967ce478d
@ -1,17 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreatePartialIndexOnPostSearchData < ActiveRecord::Migration[6.0]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def up
|
||||
execute <<~SQL
|
||||
CREATE INDEX CONCURRENTLY idx_regular_post_search_data ON post_search_data USING GIN(search_data) WHERE NOT private_message
|
||||
SQL
|
||||
end
|
||||
|
||||
def down
|
||||
execute <<~SQL
|
||||
DROP INDEX IF EXISTS idx_regular_post_search_data;
|
||||
SQL
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user