Upgrade to Ruby 3.2 (#22928)
Co-authored-by: Matthew Ford <matt@bitzesty.com>
This commit is contained in:
parent
d15a9df6fe
commit
fb8503e861
7 changed files with 39 additions and 25 deletions
|
@ -18,5 +18,5 @@ class Backup < ApplicationRecord
|
|||
belongs_to :user, inverse_of: :backups
|
||||
|
||||
has_attached_file :dump
|
||||
do_not_validate_attachment_file_type :dump
|
||||
validates_attachment_content_type :dump, content_type: /\Aapplication/
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue