rails / solid_cache

A database-backed ActiveSupport::Cache::Store
MIT License
888 stars 62 forks source link

How to load the new schema? #210

Closed fractaledmind closed 2 months ago

fractaledmind commented 2 months ago

The new installer creates a db/cache_schema.rb file. Running bin/rails db:migrate:cache doesn't load that schema into the database file (as confirmed by checking the output of .tables in the sqlite3 REPL). But, I also can't specify a specific database when calling bin/rails db:schema:load. Neither DATABASE=cache bin/rails db:schema:load nor bin/rails db:schema:load --database=cache nor bin/rails db:schema:load:cache work. And just running bin/rails db:schema:load doesn't work because I am using Solid Queue which presently doesn't create a schema file (even after running migrations; no idea why). So, I get hit with a db/queue_schema.rb doesn't exist yet error.

Re-reading the README, I don't see what my next step should be after running the installer to actually have the cache database include the entries table. Help?