From c100600875450eb63a9f45697e67d8b1e0e35fea Mon Sep 17 00:00:00 2001 From: Albert Yi Date: Wed, 12 Sep 2018 15:19:27 -0700 Subject: [PATCH] fix migration --- db/migrate/20180912185624_add_prefixes_to_tags.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20180912185624_add_prefixes_to_tags.rb b/db/migrate/20180912185624_add_prefixes_to_tags.rb index 074b0a2e7..28987decd 100644 --- a/db/migrate/20180912185624_add_prefixes_to_tags.rb +++ b/db/migrate/20180912185624_add_prefixes_to_tags.rb @@ -1,6 +1,6 @@ class AddPrefixesToTags < ActiveRecord::Migration[5.2] def change execute "set statement_timeout = 0" - execute "CREATE INDEX index_tags_on_name_prefix ON tags USING gin (REGEXP_REPLACE(name, '([a-z0-9])[a-z0-9'']*($|[^a-z0-9'']+)', '\1', 'g') gin_trgm_ops) WHERE post_count > 0" + execute "CREATE INDEX index_tags_on_name_prefix ON tags USING gin (REGEXP_REPLACE(name, '([a-z0-9])[a-z0-9'']*($|[^a-z0-9'']+)', '\\1', 'g') gin_trgm_ops) WHERE post_count > 0" end end