mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:16:41 +08:00
FIX: Remove access control post FK from uploads (#9853)
This commit is contained in:
parent
d11c462104
commit
c0779df99d
|
@ -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)
|
||||
#
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user