File tree Expand file tree Collapse file tree 5 files changed +11
-0
lines changed
lib/rails/generators/rails/app/templates/config/databases Expand file tree Collapse file tree 5 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,10 @@ production:
73
73
<<: *primary_production
74
74
database: <%= app_name %>_production_queue
75
75
migrations_paths: db/queue_migrate
76
+ <%- unless options.skip_action_cable? -%>
76
77
cable:
77
78
<<: *primary_production
78
79
database: <%= app_name %>_production_cable
79
80
migrations_paths: db/cable_migrate
81
+ <%- end -%>
80
82
<%- end -%>
Original file line number Diff line number Diff line change @@ -105,8 +105,10 @@ production:
105
105
<<: *primary_production
106
106
database: <%= app_name %>_production_queue
107
107
migrations_paths: db/queue_migrate
108
+ <%- unless options.skip_action_cable? -%>
108
109
cable:
109
110
<<: *primary_production
110
111
database: <%= app_name %>_production_cable
111
112
migrations_paths: db/cable_migrate
113
+ <%- end -%>
112
114
<%- end -%>
Original file line number Diff line number Diff line change @@ -62,9 +62,11 @@ production:
62
62
<<: *default
63
63
database: storage/production_queue.sqlite3
64
64
migrations_paths: db/queue_migrate
65
+ <%- unless options.skip_action_cable? -%>
65
66
cable:
66
67
<<: *default
67
68
database: storage/production_cable.sqlite3
68
69
migrations_paths: db/cable_migrate
70
+ <%- end -%>
69
71
<%- end -%>
70
72
<%- end -%>
Original file line number Diff line number Diff line change @@ -73,8 +73,10 @@ production:
73
73
<<: *primary_production
74
74
database: <%= app_name %>_production_queue
75
75
migrations_paths: db/queue_migrate
76
+ <%- unless options.skip_action_cable? -%>
76
77
cable:
77
78
<<: *primary_production
78
79
database: <%= app_name %>_production_cable
79
80
migrations_paths: db/cable_migrate
81
+ <%- end -%>
80
82
<%- end -%>
Original file line number Diff line number Diff line change @@ -237,6 +237,9 @@ def test_app_update_does_not_generate_action_cable_contents_when_skip_action_cab
237
237
assert_file "config/environments/production.rb" do |content |
238
238
assert_no_match ( /config\. action_cable/ , content )
239
239
end
240
+ assert_file "config/database.yml" do |content |
241
+ assert_no_match ( /cable:/ , content )
242
+ end
240
243
end
241
244
242
245
def test_app_update_does_not_generate_bootsnap_contents_when_skip_bootsnap_is_given
You can’t perform that action at this time.
0 commit comments