DEV: Remove migration that is no longer required.

Avoid creating the index twice.

Follow-up to 628319aad3
This commit is contained in:
Guo Xiang Tan 2020-08-20 14:25:20 +08:00
parent 89fcb75af2
commit 0967ce478d
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
1 changed files with 0 additions and 17 deletions

View File

@ -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