From b54ab90c09d6636a8bb5fdb3a08ff13e1ba8bb7e Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Wed, 25 Jun 2025 11:46:29 +0200 Subject: [PATCH] Execute raw SQL to see if this is making production crash --- .../20250624055720_add_description_to_cards_search_index.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/db/migrate/20250624055720_add_description_to_cards_search_index.rb b/db/migrate/20250624055720_add_description_to_cards_search_index.rb index f63e50b6a..a2f77f19a 100644 --- a/db/migrate/20250624055720_add_description_to_cards_search_index.rb +++ b/db/migrate/20250624055720_add_description_to_cards_search_index.rb @@ -1,6 +1,8 @@ class AddDescriptionToCardsSearchIndex < ActiveRecord::Migration[8.1] def change - drop_table :cards_search_index + execute <<~SQL + DROP TABLE cards_search_index; + SQL create_virtual_table :cards_search_index, "fts5", [ "title", "description" ] end end