Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to load the new schema? #210

Closed
fractaledmind opened this issue Sep 5, 2024 · 0 comments · Fixed by #212
Closed

How to load the new schema? #210

fractaledmind opened this issue Sep 5, 2024 · 0 comments · Fixed by #212

Comments

@fractaledmind
Copy link
Contributor

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?

fractaledmind added a commit to fractaledmind/solid_cache that referenced this issue Sep 5, 2024
@dhh dhh closed this as completed in #212 Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant