fixed 解决安全问题访问附件,id改为uuid,migrate

This commit is contained in:
xxq250 2023-12-12 15:20:52 +08:00
parent d74901cffa
commit 8264717017
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
class AddUuidToAttachments < ActiveRecord::Migration[5.2]
def change
add_column :attachments, :uuid, :string, index: true
end
end