diff --git a/app/models/user.rb b/app/models/user.rb index 5b163b83..f49b0d06 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -129,8 +129,8 @@ class User < ApplicationRecord end def profile_image_size - if profile_image.attached? && profile_image.byte_size > 5.megabytes - errors.add(:profile_image, :invalid_file_size, max_megabytes: 5) + if profile_image.attached? && profile_image.byte_size > 10.megabytes + errors.add(:profile_image, :invalid_file_size, max_megabytes: 10) end end end