You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,15 @@ production:
41
41
42
42
Then run `db:prepare` in production to ensure the database is created and the schema is loaded.
43
43
44
+
### Single database configuration
45
+
46
+
Running Solid Cache in a separate database is recommended, but it's also possible to use one single database for both the app and the queue. Follow these steps:
47
+
48
+
1. Copy the contents of `db/cache_schema.rb` into a normal migration and delete `db/cache_schema.rb`
49
+
2. Migrate your database.
50
+
51
+
You won't have multiple databases, so `database.yml` doesn't need to have primary and cache database.
52
+
44
53
## Configuration
45
54
46
55
Configuration will be read from `config/cache.yml` or `config/solid_cache.yml`. You can change the location of the config file by setting the `SOLID_CACHE_CONFIG` env variable.
0 commit comments