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

This commit is contained in:
Martin Brennan 2020-05-22 11:20:25 +10:00 committed by GitHub
parent d11c462104
commit c0779df99d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -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)
#

View File

@ -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