From 8135e08107f81c38389ec3938df85a9b9f0e1f4f Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 9 Aug 2026 22:14:29 +0200 Subject: Load the test schema through Rails, and keep the search trigger installed --- test/test_helper.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/test_helper.rb') diff --git a/test/test_helper.rb b/test/test_helper.rb index 7ab9c8c9..b7fe2b58 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -2,6 +2,12 @@ ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") require 'rails/test_help' +# rails/test_help calls maintain_test_schema!, which reloads db/schema.rb +# in this process when a migration is pending. That recreates +# page_translations and drops the search_vector trigger the initializer +# installed at boot. Reinstall it here, after any such reload. +Page.ensure_search_vector_trigger! + module ActiveRecord class FixtureSet class << self -- cgit v1.3