From 99a7bc915ab828131c45960be6e9b6135cd01a6b Mon Sep 17 00:00:00 2001 From: "Issei.M" Date: Wed, 25 Aug 2021 18:13:29 +0900 Subject: [PATCH] Stop ignoring tmp/storage/.keep Similar to a254922efabfc53ee4adacccb9b301a0832227ef https://github.com/rails/rails/blob/main/railties/lib/rails/generators/rails/app/app_generator.rb#L231 generates tmp/storage/.keep file --- railties/lib/rails/generators/rails/app/templates/gitignore.tt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/railties/lib/rails/generators/rails/app/templates/gitignore.tt b/railties/lib/rails/generators/rails/app/templates/gitignore.tt index b50e0a5e72..b3dc39afde 100644 --- a/railties/lib/rails/generators/rails/app/templates/gitignore.tt +++ b/railties/lib/rails/generators/rails/app/templates/gitignore.tt @@ -31,6 +31,9 @@ /storage/* <% if keeps? -%> !/storage/.keep +/tmp/storage/* +!/tmp/storage/ +!/tmp/storage/.keep <% end -%> <% end -%> <% unless options.api? -%>