Change user backups to use expiring URLs for download when possible (#24136)
This commit is contained in:
parent
edc7ca5920
commit
75e5a6e437
6 changed files with 32 additions and 4 deletions
|
@ -18,6 +18,6 @@
|
|||
class Backup < ApplicationRecord
|
||||
belongs_to :user, inverse_of: :backups
|
||||
|
||||
has_attached_file :dump
|
||||
has_attached_file :dump, s3_permissions: 'private'
|
||||
validates_attachment_content_type :dump, content_type: /\Aapplication/
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue