1
0
mirror of synced 2026-08-05 18:06:55 +00:00

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.
This commit is contained in:
Roman Rizzi
2020-09-28 12:23:53 -03:00
committed by GitHub
parent 4a167a7f5a
commit 51a047b60c
3 changed files with 288 additions and 0 deletions
@@ -0,0 +1,11 @@
# 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