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

dedicated cache database not created with steps from readme #150

Closed
vokshirg opened this issue Feb 13, 2024 · 1 comment
Closed

dedicated cache database not created with steps from readme #150

vokshirg opened this issue Feb 13, 2024 · 1 comment

Comments

@vokshirg
Copy link

vokshirg commented Feb 13, 2024

When I follow steps from here to create dedicated cache database, I run command rails db:create but get only response that my dev database already exists. And cache_development has not been created

# database.yml
default: &default
  adapter: postgresql
  encoding: unicode
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  url: <%= ENV["DATABASE_URL"] %>

development:
  <<: *default
  database: my_app_development
  cache:
    database: cache_development
    url: <%= ENV["DATABASE_URL"] %>
    migrations_paths: "db/cache/migrate"

what am i missing? I'm using postgresql, does it supported with this syntax?

@vokshirg
Copy link
Author

oh, my bad, that works 🙈

development:
  primary:
    <<: *default
    database: my_app_development
  cache:
    database: cache_development
    url: <%= ENV["DATABASE_URL"] %>
    migrations_paths: "db/cache/migrate"

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

No branches or pull requests

1 participant