diff --git a/db/migrate/20250722082515_add_index_to_ai_topics_embeddings.rb b/db/migrate/20250722082515_add_index_to_ai_topics_embeddings.rb new file mode 100644 index 000000000..b918d6547 --- /dev/null +++ b/db/migrate/20250722082515_add_index_to_ai_topics_embeddings.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class AddIndexToAiTopicsEmbeddings < ActiveRecord::Migration[7.2] + def up + add_index :ai_topics_embeddings, %i[topic_id model_id] + end + + def down + raise ActiveRecord::IrreversibleMigration + end +end