diff --git a/db/post_migrate/20240711102255_ensure_consistency.rb b/db/post_migrate/20240711102255_ensure_consistency.rb index b14ea7e..1a04e78 100644 --- a/db/post_migrate/20240711102255_ensure_consistency.rb +++ b/db/post_migrate/20240711102255_ensure_consistency.rb @@ -24,14 +24,6 @@ class EnsureConsistency < ActiveRecord::Migration[7.0] dvv1.archive = dvv2.archive SQL - # delete votes associated with no user - DB.exec(<<~SQL) - DELETE FROM topic_voting_votes - USING topic_voting_votes tvv - LEFT JOIN users u ON tvv.user_id = u.id - WHERE u.id IS NULL; - SQL - # delete votes associated with no topics DB.exec(<<~SQL) DELETE FROM topic_voting_votes