Drop extension when rolling back all PGroonga migrations
This commit is contained in:
parent
8376ca1dda
commit
ecc8f28fc0
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,8 @@ def up do
|
||||||
def down do
|
def down do
|
||||||
execute("DROP INDEX IF EXISTS object_content_pgroonga")
|
execute("DROP INDEX IF EXISTS object_content_pgroonga")
|
||||||
|
|
||||||
|
execute("DROP EXTENSION IF EXISTS pgroonga")
|
||||||
|
|
||||||
create_if_not_exists(
|
create_if_not_exists(
|
||||||
index(:objects, ["(to_tsvector('english', data->>'content'))"],
|
index(:objects, ["(to_tsvector('english', data->>'content'))"],
|
||||||
using: :gin,
|
using: :gin,
|
||||||
|
|
Loading…
Reference in a new issue