Skip to content

Commit b197ebd

Browse files
authored
Revert "Generate reference to the database in the cache template for all envi…"
This reverts commit fb7debd.
1 parent 7e4bc0c commit b197ebd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/generators/solid_cache/install/templates/config/cache.yml.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
default: &default
2-
database: <%= ENV.fetch("DATABASE", "cache") %>
32
store_options:
43
# Cap age of oldest cache entry to fulfill retention policies
54
# max_age: <%%= 60.days.to_i %>
@@ -13,4 +12,5 @@ test:
1312
<<: *default
1413

1514
production:
15+
database: <%= ENV.fetch("DATABASE", "cache") %>
1616
<<: *default

test/lib/generators/solid_cache/solid_cache/install_generator_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class SolidCache::InstallGeneratorTest < Rails::Generators::TestCase
7272
def expected_cache_config
7373
<<~YAML
7474
default: &default
75-
database: cache
7675
store_options:
7776
# Cap age of oldest cache entry to fulfill retention policies
7877
# max_age: <%= 60.days.to_i %>
@@ -86,6 +85,7 @@ def expected_cache_config
8685
<<: *default
8786
8887
production:
88+
database: cache
8989
<<: *default
9090
YAML
9191
end

0 commit comments

Comments
 (0)