mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-08-05 12:43:45 +00:00
13 lines
306 B
Ruby
13 lines
306 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class DropPersonaTables < ActiveRecord::Migration[7.0]
|
||
|
def up
|
||
|
# Drop the old table after copying to new one
|
||
|
drop_table :ai_personas if table_exists?(:ai_personas)
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
raise IrreversibleMigration, "Cannot recreate dropped persona tables"
|
||
|
end
|
||
|
end
|