mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-08 04:28:18 +00:00
54a8dd9556
It also removes the need for multiple versions of our seeded prompts per model, further simplifying the code.
10 lines
256 B
Ruby
10 lines
256 B
Ruby
# frozen_string_literal: true
|
|
|
|
class SwitchToGenericCompletionPrompts < ActiveRecord::Migration[7.0]
|
|
def change
|
|
remove_column :completion_prompts, :provider, :text
|
|
|
|
DB.exec("DELETE FROM completion_prompts WHERE (id < 0 AND id > -300)")
|
|
end
|
|
end
|