Solid Cable is a DB-based backend for Action Cable.
Add this line to your application's Gemfile:
gem "solid_cable"
And then execute:
$ bundle
Or install it yourself as:
$ gem install solid_cable
Now, you need to install the necessary migrations and configure Action Cable's adapter.
$ bin/rails generate solid_cable:install
Update config/cable.yml
to use the new adapter:
development:
adapter: solid_cable
silence_polling: true
polling_interval: 1
keep_messages_around_for: 30.minutes
test:
adapter: test
production:
adapter: solid_cable
polling_interval: 0.1
keep_messages_around_for: 10.minutes
Finally, you need to run the migrations:
$ bin/rails db:migrate
The gem is available as open source under the terms of the MIT License.