Merge commit '4b9e4f6398
' into kb_development
This commit is contained in:
commit
462c6e99b6
12 changed files with 51 additions and 14 deletions
|
@ -18,6 +18,6 @@
|
|||
class Backup < ApplicationRecord
|
||||
belongs_to :user, inverse_of: :backups
|
||||
|
||||
has_attached_file :dump, s3_permissions: 'private'
|
||||
has_attached_file :dump, s3_permissions: ->(*) { ENV['S3_PERMISSION'] == '' ? nil : 'private' }
|
||||
do_not_validate_attachment_file_type :dump
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue