I hereby claim:
- I am simoleone on github.
- I am simoleone (https://keybase.io/simoleone) on keybase.
- I have a public key whose fingerprint is C4D4 9E93 5F50 6FE1 685B 0BE4 7179 C364 A1C5 568A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
require "shrine/storage/s3" | |
base_s3_options = { | |
access_key_id: Rails.application.credentials.dig(:aws, :access_key_id), | |
secret_access_key: Rails.application.credentials.dig(:aws, :secret_access_key), | |
region: 'us-east-1', | |
bucket: ENV['SHRINE_S3_BUCKET'], | |
} | |
cache_s3_options = base_s3_options.merge( |
class AddShrineImages < ActiveRecord::Migration[5.2] | |
def change | |
add_column :my_interesting_thing, :image_data, :text | |
end | |
end |
Shrine.plugin :backgrounding | |
Shrine::Attacher.promote { |data| ShrinePromoteWorker.perform_async(data) } | |
Shrine::Attacher.delete { |data| ShrineDeleteWorker.perform_async(data) } |