Using multiple buckets with ActiveStorage

Does anyone know if there is a way to configure custom buckets for specific attachments?

class MyModel < ApplicationRecord
  ...

  has_one_attached :logo, bucket: 'custom_bucket'

  ...    
end
+4
source share
1 answer

Not there, sorry. Active Storage is designed for use with a single bucket.

0
source

Source: https://habr.com/ru/post/1694616/


All Articles