mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-02-18 01:14:57 +00:00
Reintroduces the migration removed in `cdfc5d4`, and fixes it to work with `query_groups`. Since the code is fairly complex, I moved into a rake task so it can be tested and make sure it works.
12 lines
216 B
Ruby
12 lines
216 B
Ruby
# frozen_string_literal: true
|
|
|
|
class FixQueryIds < ActiveRecord::Migration[6.0]
|
|
def up
|
|
Rake::Task['data_explorer:fix_query_ids'].invoke
|
|
end
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|