diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-31 16:12:27 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-31 16:12:27 -0500 |
commit | e814042a0a98668e42fa34ec877cc24a306d7f53 (patch) | |
tree | 2ce5530db5f1cedf9191aa09d8d4cb2a90fdc764 /railties | |
parent | 9d1268375c24b8b112f44ad78a339d8e40f5f2c9 (diff) | |
download | rails-e814042a0a98668e42fa34ec877cc24a306d7f53.tar.gz rails-e814042a0a98668e42fa34ec877cc24a306d7f53.tar.bz2 rails-e814042a0a98668e42fa34ec877cc24a306d7f53.zip |
Create the skeleton directories needed and ignore accordingly
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 5 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/gitignore | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index dc7e243f7b..7953a13d2e 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -178,6 +178,11 @@ module Rails directory "public", "public", recursive: false end + def storage + empty_directory_with_keep_file "storage" + empty_directory_with_keep_file "tmp/storage" + end + def test empty_directory_with_keep_file "test/fixtures" empty_directory_with_keep_file "test/fixtures/files" diff --git a/railties/lib/rails/generators/rails/app/templates/gitignore b/railties/lib/rails/generators/rails/app/templates/gitignore index 1e6b9afcd2..64ed09dc4b 100644 --- a/railties/lib/rails/generators/rails/app/templates/gitignore +++ b/railties/lib/rails/generators/rails/app/templates/gitignore @@ -21,6 +21,9 @@ !/tmp/.keep <% end -%> +# Ignore uploaded files in development +/storage/* + <% unless options[:skip_yarn] -%> /node_modules /yarn-error.log |