This gem allows to store carrierwave
uploads in the database, eg. on platforms with ephemeral filesystems like Heroku.
# In: Gemfile
gem 'carrierwave-blob', git: "https://gist.github.com/f1dc8c75d67b92b23a55.git"- Setup your uploader to use the blob storage:
# In: app/uploaders/picture_uploader.rb
storage CarrierWave::Storage::Blob- Generate a migration for your model:
rails generate carrier_wave_blob_migration Idea- Execute the migrations:
rake db:migrateCreated during RailsGirls Prague