DEV: Promote historic post-deploy migrations (#96)

DEV: Promote historic post-deploy migrations (#96)

diff --git a/db/migrate/20201003141123_remove_votes_of_deleted_users.rb b/db/migrate/20201003141123_remove_votes_of_deleted_users.rb
new file mode 100644
index 0000000..66e5f87
--- /dev/null
+++ b/db/migrate/20201003141123_remove_votes_of_deleted_users.rb
@@ -0,0 +1,19 @@
+# frozen_string_literal: true
+
+class RemoveVotesOfDeletedUsers < ActiveRecord::Migration[6.0]
+  def up
+    DB.exec <<~SQL
+      DELETE FROM discourse_voting_votes
+      WHERE user_id IN (
+        SELECT votes.user_id
+        FROM discourse_voting_votes votes
+        LEFT JOIN users ON users.id = votes.user_id
+        WHERE users.id IS NULL
+      )
+    SQL
+  end
+
+  def down
+    raise ActiveRecord::IrreversibleMigration
+  end
+end
diff --git a/db/post_migrate/20201003141123_remove_votes_of_deleted_users.rb b/db/post_migrate/20201003141123_remove_votes_of_deleted_users.rb
deleted file mode 100644
index 66e5f87..0000000
--- a/db/post_migrate/20201003141123_remove_votes_of_deleted_users.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-# frozen_string_literal: true
-
-class RemoveVotesOfDeletedUsers < ActiveRecord::Migration[6.0]
-  def up
-    DB.exec <<~SQL
-      DELETE FROM discourse_voting_votes
-      WHERE user_id IN (
-        SELECT votes.user_id
-        FROM discourse_voting_votes votes
-        LEFT JOIN users ON users.id = votes.user_id
-        WHERE users.id IS NULL
-      )
-    SQL
-  end
-
-  def down
-    raise ActiveRecord::IrreversibleMigration
-  end
-end

GitHub sha: 7f90cfffa73172250c268ae292bdaaf9e2ba5323

This commit appears in #96 which was approved by CvX. It was merged by davidtaylorhq.