Skip to content

samvincent/carrierwave-blob

Repository files navigation

Store file uploads in the database

This gem allows to store carrierwave uploads in the database, eg. on platforms with ephemeral filesystems like Heroku.

Installation

# In: Gemfile
gem 'carrierwave-blob', github: "samvincent/carrierwave-blob"

Usage

  1. Setup your uploader to use the blob storage:
# In: app/uploaders/picture_uploader.rb
storage CarrierWave::Storage::Blob
  1. Generate a migration for your model:
rails generate carrier_wave_blob_migration Idea
  1. Execute the migrations:
rake db:migrate

This is a fork of a found gist by @karmi.

About

BLOB storage for Carrierwave

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages