mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-23 11:23:27 +08:00
Having it in d-ai's plugin.rb file solves it when running plugin tests.
But when running core tests, plugins are not loaded, but the tables
still exist in the database.
Followup to 6247fdc255
10 lines
371 B
Ruby
Vendored
10 lines
371 B
Ruby
Vendored
# 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_user_embeddings",
|
|
"ai_document_fragments_embeddings",
|
|
)
|