Remove variants from attachment

This commit is contained in:
Râu Cao 2023-10-25 22:14:47 +02:00
parent 00ec7fa21c
commit def87a1621
Signed by: raucao
GPG Key ID: 15E65F399D084BA9

View File

@ -3,11 +3,7 @@ class AppCatalog::WebApp < ApplicationRecord
has_many :remote_storage_authorizations has_many :remote_storage_authorizations
has_one_attached :icon do |attachable| has_one_attached :icon
attachable.variant :medium, resize_to_limit: [128,128]
attachable.variant :large, resize_to_limit: [256,256]
end
has_one_attached :apple_touch_icon has_one_attached :apple_touch_icon
validates :url, presence: true, uniqueness: true validates :url, presence: true, uniqueness: true