File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
lib/rails/generators/rails/app/templates/config/databases Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,16 @@ production:
41
41
<<: *default
42
42
# database: path/to/persistent/storage/production_cache.sqlite3
43
43
migrations_paths: db/cache_migrate
44
+ queue:
45
+ <<: *default
46
+ # database: path/to/persistent/storage/production_queue.sqlite3
47
+ migrations_paths: db/queue_migrate
48
+ <%- unless options.skip_action_cable? -%>
49
+ cable:
50
+ <<: *default
51
+ # database: path/to/persistent/storage/production_cable.sqlite3
52
+ migrations_paths: db/cable_migrate
53
+ <%- end -%>
44
54
<%- end -%>
45
55
<%- else -%>
46
56
# Store production database in the storage/ directory, which by default
Original file line number Diff line number Diff line change @@ -698,6 +698,16 @@ def test_kamal_files_are_skipped_if_required
698
698
assert_no_file ".kamal/secrets"
699
699
end
700
700
701
+ def test_database_yml_skip_kamal
702
+ run_generator [ destination_root , "--skip-kamal" ]
703
+
704
+ assert_file ( "config/database.yml" ) do |content |
705
+ assert_match ( "db/queue_migrate" , content )
706
+ assert_match ( "db/cache_migrate" , content )
707
+ assert_match ( "db/cable_migrate" , content )
708
+ end
709
+ end
710
+
701
711
def test_inclusion_of_kamal_storage_volume
702
712
generator [ destination_root ]
703
713
run_generator_instance
You can’t perform that action at this time.
0 commit comments