Search code examples
ruby-on-railsrails-activestorage

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

Solution

  • There isn’t, sorry. Active Storage is designed for use with a single bucket.