Active Storage DB
An ActiveStorage service plugin to store files in a PostgreSQL / MySQL / MSSQL / SQLite database
No ratings yet
- Gem
- active_storage_db
- Repository
- blocknotes/active_storage_db
- License
- MIT
- Stars
- 59
- Added
- August 16, 2026
About
An ActiveStorage service plugin to store files in a PostgreSQL / MySQL / MSSQL / SQLite database
An Active Storage service upload/download plugin that stores files in a PostgreSQL or MySQL database. Experimental support also for MSSQL and SQLite.
What you get
- Setup Active Storage in your Rails application
- Add to your Gemfile
gem 'active_storage_db'(and execute:bundle) - Install the gem migrations:
bin/rails active_storage_db:install:migrations(and execute:bin/rails db:migrate) - Add to your
config/routes.rb:mount ActiveStorageDB::Engine => '/active_storage_db' - Change Active Storage service in config/environments/development.rb to:
config.active_storage.service = :db - Add to config/storage.yml:
Mounting it
ruby
# Gemfile
gem "active_storage_db"
# config/routes.rb
mount ActiveStorageDB::Engine, at: "/active-storage-db"
Details
59 stars on GitHub · MIT licensed · maintained by blocknotes. Source: https://github.com/blocknotes/active_storage_db
Discussion (0)
Sign in to join the discussion.
No comments yet.