discourse-data-explorer/db/migrate/20200902225712_fix_query_ids.rb
Roman Rizzi 51a047b60c
FIX: Store query groups in a temp table when fixing ids. (#68)
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.
2020-09-28 12:23:53 -03:00

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