Drop extension when rolling back all PGroonga migrations

This commit is contained in:
itepechi 2023-11-02 06:19:00 +09:00
parent 8376ca1dda
commit ecc8f28fc0

View file

@ -19,6 +19,8 @@ def up do
def down do
execute("DROP INDEX IF EXISTS object_content_pgroonga")
execute("DROP EXTENSION IF EXISTS pgroonga")
create_if_not_exists(
index(:objects, ["(to_tsvector('english', data->>'content'))"],
using: :gin,