discourse/config/initializers/000-active_record.rb
David Taylor bbae453bd0
DEV: Add ai_posts_embeddings to ignored tables (#36629)
Silences 'unknown OID' message
2025-12-12 12:58:57 +00:00

11 lines
396 B
Ruby

# frozen_string_literal: true
# No ActiveRecord for these models. Avoids the "unknown OID" warnings.
# We need it in core, because plugins are not loaded in core tests,
# but the tables are likely still present in the test database.
ActiveRecord.schema_cache_ignored_tables.push(
"ai_topics_embeddings",
"ai_posts_embeddings",
"ai_user_embeddings",
"ai_document_fragments_embeddings",
)