mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-06 11:38:13 +00:00
14 lines
383 B
Ruby
14 lines
383 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class AlterAiIdsToBigint < ActiveRecord::Migration[7.1]
|
||
|
def up
|
||
|
change_column :ai_document_fragment_embeddings, :rag_document_fragment_id, :bigint
|
||
|
change_column :classification_results, :target_id, :bigint
|
||
|
change_column :rag_document_fragments, :target_id, :bigint
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
raise ActiveRecord::IrreversibleMigration
|
||
|
end
|
||
|
end
|