FIX: fix ids rake task should be evaluated only once (#76)

FIX: fix ids rake task should be evaluated only once (#76)

Without task(‘data_explorer:fix_query_ids’).clear rake task is evaluated twice

diff --git a/lib/tasks/fix_query_ids.rake b/lib/tasks/fix_query_ids.rake
index 2939478..1366204 100644
--- a/lib/tasks/fix_query_ids.rake
+++ b/lib/tasks/fix_query_ids.rake
@@ -1,6 +1,8 @@
 # frozen_string_literal: true
 
 desc 'Fix query IDs to match the old ones used in the plugin store (q:id)'
+
+task('data_explorer:fix_query_ids').clear
 task 'data_explorer:fix_query_ids' => :environment do
   ActiveRecord::Base.transaction do
     # Only queries with unique title can be fixed
@@ -37,7 +39,7 @@ task 'data_explorer:fix_query_ids' => :environment do
           hidden BOOLEAN,
           created_at TIMESTAMP,
           updated_at TIMESTAMP
-        )
+        ) ON COMMIT DROP
       SQL
 
       DB.exec <<-SQL
@@ -45,7 +47,7 @@ task 'data_explorer:fix_query_ids' => :environment do
           id INTEGER PRIMARY KEY,
           query_id INTEGER,
           group_id INTEGER
-        )
+        ) ON COMMIT DROP
       SQL
 
       movements.each do |movement|

GitHub sha: b4bdbf71

This commit appears in #76 which was approved by tgxworld and tgxworld. It was merged by lis2.