FIX: migration was not accounting for new has policy field

FIX: migration was not accounting for new has policy field

We need this new extra field to denote a post has a policy

diff --git a/db/post_migrate/20190817010201_migrate_post_policy_data.rb b/db/post_migrate/20190817010201_migrate_post_policy_data.rb
index d2d976d..1f88648 100644
--- a/db/post_migrate/20190817010201_migrate_post_policy_data.rb
+++ b/db/post_migrate/20190817010201_migrate_post_policy_data.rb
@@ -42,6 +42,12 @@ class MigratePostPolicyData < ActiveRecord::Migration[5.2]
     SQL
 
     execute(<<~SQL)
+      INSERT INTO post_custom_fields (post_id, name, value, created_at, updated_at)
+      SELECT post_id, 'HasPolicy', 'true', created_at, updated_at
+      FROM post_policies
+    SQL
+
+    execute(<<~SQL)
       DELETE FROM post_custom_fields
       WHERE name in (
         'PolicyGroup',

GitHub sha: b81214aa