diff --git a/Gemfile b/Gemfile index 79449d5..09337e7 100644 --- a/Gemfile +++ b/Gemfile @@ -15,8 +15,7 @@ gem "turbo-rails" # Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev] gem "stimulus-rails" -# Use the database-backed adapters for Rails.cache, Active Job, and Action Cable -gem "solid_cable" +# Use the database-backed adapters for Rails.cache and Active Job gem "solid_cache" gem "solid_queue" diff --git a/Gemfile.lock b/Gemfile.lock index 4c1c156..2915e5a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -406,11 +406,6 @@ GEM semantic_logger (5.1.0) concurrent-ruby (~> 1.0) simpleidn (0.3.0) - solid_cable (4.1.0) - actioncable (>= 7.2) - activejob (>= 7.2) - activerecord (>= 7.2) - railties (>= 7.2) solid_cache (1.0.10) activejob (>= 7.2) activerecord (>= 7.2) @@ -529,7 +524,6 @@ DEPENDENCIES rqrcode_core ruby-vips selenium-webdriver - solid_cable solid_cache solid_queue sqlite3 (>= 2.1) @@ -565,6 +559,7 @@ CHECKSUMS bootsnap (1.26.0) sha256=ca96237015e6cd74a02963d5821cf00ac5ea134653b323e8cd6d702a7718bf1b brakeman (8.1.0) sha256=cfa9e5214e4925842f4bc849a64f8a7e6c5d0425fe98eac8d7b7bc60fdc17e07 builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f + bundler (4.0.20) sha256=7978a8ac648767f5e635bc522445b79e80a52b907a39a36c2d8085ed6bc762ae capybara (3.40.0) sha256=42dba720578ea1ca65fd7a41d163dd368502c191804558f6e0f71b391054aeef concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1 connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a @@ -695,7 +690,6 @@ CHECKSUMS selenium-webdriver (4.49.0) sha256=b430f091a3cababb356b6f6132e0e4f385b017819355f563557e1537819edc89 semantic_logger (5.1.0) sha256=9a8170fc0212ad47ef29e0760219cf416cb5b9973061981733234f7148b6d6ea simpleidn (0.3.0) sha256=12ca730bed2f3db04d11e9bfd1bca3e11fb37f55b21eb2e9793fb5814bf54d03 - solid_cable (4.1.0) sha256=828e3d509207b82b4f05f4e9c85f696994710679b52d511aa7f97ebd212d3226 solid_cache (1.0.10) sha256=bc05a2fb3ac78a6f43cbb5946679cf9db67dd30d22939ededc385cb93e120d41 solid_queue (1.7.0) sha256=6566b70b801d1c317c81bba7bcdd5677c019afac584a30374b4164002ca356d3 sqlite3 (2.9.6-aarch64-linux-gnu) sha256=d8b1f7d23efd7abac285775a9566562fc7debfef79d594e3a20354406fb7907c diff --git a/config/application.rb b/config/application.rb index d7d2946..0dc3f6f 100644 --- a/config/application.rb +++ b/config/application.rb @@ -11,7 +11,6 @@ # require "action_mailbox/engine" # require "action_text/engine" require "action_view/railtie" -require "action_cable/engine" require "rails/test_unit/railtie" # Require the gems listed in Gemfile, including any gems diff --git a/config/cable.yml b/config/cable.yml deleted file mode 100644 index b9adc5a..0000000 --- a/config/cable.yml +++ /dev/null @@ -1,17 +0,0 @@ -# Async adapter only works within the same process, so for manually triggering cable updates from a console, -# and seeing results in the browser, you must do so from the web console (running inside the dev process), -# not a terminal started via bin/rails console! Add "console" to any action or any ERB template view -# to make the web console appear. -development: - adapter: async - -test: - adapter: test - -production: - adapter: solid_cable - connects_to: - database: - writing: cable - polling_interval: 0.1.seconds - message_retention: 1.day diff --git a/config/database.yml b/config/database.yml index 813eab2..119ca82 100644 --- a/config/database.yml +++ b/config/database.yml @@ -32,10 +32,6 @@ production: primary: <<: *default database: storage/production.sqlite3 - cable: - <<: *default - database: storage/production_cable.sqlite3 - migrations_paths: db/cable_migrate cache: <<: *default database: storage/production_cache.sqlite3 diff --git a/db/cable_schema.rb b/db/cable_schema.rb deleted file mode 100644 index 2366660..0000000 --- a/db/cable_schema.rb +++ /dev/null @@ -1,11 +0,0 @@ -ActiveRecord::Schema[7.1].define(version: 1) do - create_table "solid_cable_messages", force: :cascade do |t| - t.binary "channel", limit: 1024, null: false - t.binary "payload", limit: 536870912, null: false - t.datetime "created_at", null: false - t.integer "channel_hash", limit: 8, null: false - t.index ["channel"], name: "index_solid_cable_messages_on_channel" - t.index ["channel_hash"], name: "index_solid_cable_messages_on_channel_hash" - t.index ["created_at"], name: "index_solid_cable_messages_on_created_at" - end -end