From d8d7ef67e9d1d325e92b2a28b2c3ac1dfe32eefd Mon Sep 17 00:00:00 2001 From: Veronica Isoardi Date: Sun, 8 Dec 2024 20:36:22 -0300 Subject: [PATCH] Remove solid cache and cable --- Gemfile | 2 -- Gemfile.lock | 11 ----------- config/cable.yml | 17 ----------------- config/cache.yml | 16 ---------------- db/cable_schema.rb | 13 ------------- db/migrate/20241208232543_solid_cache.rb | 14 -------------- db/schema.rb | 13 +------------ rollback | 0 8 files changed, 1 insertion(+), 85 deletions(-) delete mode 100644 config/cable.yml delete mode 100644 config/cache.yml delete mode 100644 db/cable_schema.rb delete mode 100644 db/migrate/20241208232543_solid_cache.rb create mode 100644 rollback diff --git a/Gemfile b/Gemfile index 61f91f3..c5d2e4b 100644 --- a/Gemfile +++ b/Gemfile @@ -16,8 +16,6 @@ gem 'phosphor_icons', '~> 0.3.0' gem 'propshaft' gem 'puma', '>= 5.0' gem 'richer_text', '~> 0.17.0' -gem 'solid_cable' -gem 'solid_cache' gem 'solid_queue' gem 'stimulus-rails' gem 'tailwindcss-rails', '~> 3.0' diff --git a/Gemfile.lock b/Gemfile.lock index ea577e8..ab34499 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -317,15 +317,6 @@ GEM websocket (~> 1.0) shoulda-matchers (6.4.0) activesupport (>= 5.2.0) - solid_cable (3.0.2) - actioncable (>= 7.2) - activejob (>= 7.2) - activerecord (>= 7.2) - railties (>= 7.2) - solid_cache (1.0.6) - activejob (>= 7.2) - activerecord (>= 7.2) - railties (>= 7.2) solid_queue (1.0.0) activejob (>= 7.1) activerecord (>= 7.1) @@ -416,8 +407,6 @@ DEPENDENCIES rubocop-rspec (~> 3.2) selenium-webdriver (< 4.27) shoulda-matchers (~> 6.0) - solid_cable - solid_cache solid_queue stimulus-rails tailwindcss-rails (~> 3.0) 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/cache.yml b/config/cache.yml deleted file mode 100644 index 1d9f76e..0000000 --- a/config/cache.yml +++ /dev/null @@ -1,16 +0,0 @@ -default: &default - store_options: - # Cap age of oldest cache entry to fulfill retention policies - # max_age: <%= 60.days.to_i %> - max_size: <%= 256.megabytes %> - namespace: <%= Rails.env %> - -development: - <<: *default - -test: - <<: *default - -production: - database: blog_production - <<: *default diff --git a/db/cable_schema.rb b/db/cable_schema.rb deleted file mode 100644 index 3d15721..0000000 --- a/db/cable_schema.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -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: 536_870_912, 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 diff --git a/db/migrate/20241208232543_solid_cache.rb b/db/migrate/20241208232543_solid_cache.rb deleted file mode 100644 index 33271a1..0000000 --- a/db/migrate/20241208232543_solid_cache.rb +++ /dev/null @@ -1,14 +0,0 @@ -class SolidCache < ActiveRecord::Migration[8.0] - def change - create_table "solid_cache_entries", force: :cascade do |t| - t.binary "key", limit: 1024, null: false - t.binary "value", limit: 536870912, null: false - t.datetime "created_at", null: false - t.integer "key_hash", limit: 8, null: false - t.integer "byte_size", limit: 4, null: false - t.index ["byte_size"], name: "index_solid_cache_entries_on_byte_size" - t.index ["key_hash", "byte_size"], name: "index_solid_cache_entries_on_key_hash_and_byte_size" - t.index ["key_hash"], name: "index_solid_cache_entries_on_key_hash", unique: true - end - end -end diff --git a/db/schema.rb b/db/schema.rb index f3b598a..7261775 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[8.0].define(version: 2024_12_08_232543) do +ActiveRecord::Schema[8.0].define(version: 2024_12_08_232128) do # These are extensions that must be enabled in order to support this database enable_extension "pg_catalog.plpgsql" @@ -87,17 +87,6 @@ t.index ["user_id"], name: "index_sessions_on_user_id" end - create_table "solid_cache_entries", force: :cascade do |t| - t.binary "key", null: false - t.binary "value", null: false - t.datetime "created_at", null: false - t.bigint "key_hash", null: false - t.integer "byte_size", null: false - t.index ["byte_size"], name: "index_solid_cache_entries_on_byte_size" - t.index ["key_hash", "byte_size"], name: "index_solid_cache_entries_on_key_hash_and_byte_size" - t.index ["key_hash"], name: "index_solid_cache_entries_on_key_hash", unique: true - end - create_table "solid_queue_blocked_executions", force: :cascade do |t| t.bigint "job_id", null: false t.string "queue_name", null: false diff --git a/rollback b/rollback new file mode 100644 index 0000000..e69de29