FIX: Remove access control post FK from uploads (#9853)

FIX: Remove access control post FK from uploads (#9853)

diff --git a/app/models/upload.rb b/app/models/upload.rb
index bb4e797..31c931c 100644
--- a/app/models/upload.rb
+++ b/app/models/upload.rb
@@ -448,7 +448,3 @@ end
 #  index_uploads_on_url                     (url)
 #  index_uploads_on_user_id                 (user_id)
 #
-# Foreign Keys
-#
-#  fk_rails_...  (access_control_post_id => posts.id)
-#
diff --git a/db/post_migrate/20200522004855_remove_access_control_post_fk.rb b/db/post_migrate/20200522004855_remove_access_control_post_fk.rb
new file mode 100644
index 0000000..36c8d0f
--- /dev/null
+++ b/db/post_migrate/20200522004855_remove_access_control_post_fk.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class RemoveAccessControlPostFk < ActiveRecord::Migration[6.0]
+  def change
+    remove_foreign_key :uploads, column: :access_control_post_id
+  end
+end

GitHub sha: c0779df9

This commit appears in #9853 which was merged by martin.