diff --git a/db/migrate/20200514075356_remove_flag_web_hooks.rb b/db/migrate/20201218000000_remove_flag_web_hooks.rb
similarity index 91%
rename from db/migrate/20200514075356_remove_flag_web_hooks.rb
rename to db/migrate/20201218000000_remove_flag_web_hooks.rb
index 448b7fb771b..82cfe095ad7 100644
--- a/db/migrate/20200514075356_remove_flag_web_hooks.rb
+++ b/db/migrate/20201218000000_remove_flag_web_hooks.rb
@@ -4,12 +4,12 @@ class RemoveFlagWebHooks < ActiveRecord::Migration[6.0]
   def up
     flag_event_type_id = 7
 
-    DB.exec <<~SQL
+    execute <<~SQL
     DELETE FROM web_hook_event_types_hooks
     WHERE web_hook_event_type_id = #{flag_event_type_id}
     SQL
 
-    DB.exec <<~SQL
+    execute <<~SQL
     DELETE FROM web_hook_event_types
     WHERE id = #{flag_event_type_id}
     SQL
diff --git a/db/migrate/20200514075407_remove_queued_post_web_hooks.rb b/db/migrate/20201218000001_remove_queued_post_web_hooks.rb
similarity index 91%
rename from db/migrate/20200514075407_remove_queued_post_web_hooks.rb
rename to db/migrate/20201218000001_remove_queued_post_web_hooks.rb
index 632e5013dc9..835054ef819 100644
--- a/db/migrate/20200514075407_remove_queued_post_web_hooks.rb
+++ b/db/migrate/20201218000001_remove_queued_post_web_hooks.rb
@@ -4,12 +4,12 @@ class RemoveQueuedPostWebHooks < ActiveRecord::Migration[6.0]
   def up
     queued_post_event_type_id = 8
 
-    DB.exec <<~SQL
+    execute <<~SQL
     DELETE FROM web_hook_event_types_hooks
     WHERE web_hook_event_type_id = #{queued_post_event_type_id}
     SQL
 
-    DB.exec <<~SQL
+    execute <<~SQL
     DELETE FROM web_hook_event_types
     WHERE id = #{queued_post_event_type_id}
     SQL