Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove storage from gitignore if skip_active_storage and database is not sqlite3 #53417

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vinibispo
Copy link
Contributor

@vinibispo vinibispo commented Oct 23, 2024

Motivation / Background

This pull request removes storage entries when active_storage is skipped and database is not sqlite3 and fixes #53413

Detail

This Pull Request changes railties/lib/rails/generators/rails/app/templates/gitignore.tt

Additional information

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Unrelated changes should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]
  • Tests are added or updated if you fix a bug or add a feature.
  • CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature. Minor bug fixes and documentation changes should not be included.

@rails-bot rails-bot bot added the railties label Oct 23, 2024
@vinibispo vinibispo force-pushed the fix/skip_storage-changes-gitignore branch from e08b8ea to 2331e17 Compare October 23, 2024 12:53
@vinibispo vinibispo force-pushed the fix/skip_storage-changes-gitignore branch from bc2cbca to c037f5e Compare November 1, 2024 04:20
@vinibispo vinibispo requested a review from zzak November 2, 2024 16:56
@zzak
Copy link
Member

zzak commented Nov 3, 2024

Also, I forgot about this but can we also update dockerignore?
https://github.com/rails/rails/blob/main/railties/lib/rails/generators/rails/app/templates/dockerignore.tt

@vinibispo vinibispo force-pushed the fix/skip_storage-changes-gitignore branch from 1a4900a to c76ed2d Compare November 3, 2024 04:50
@vinibispo vinibispo requested a review from zzak November 3, 2024 04:52
@byroot byroot force-pushed the fix/skip_storage-changes-gitignore branch from c76ed2d to 1849785 Compare November 15, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.gitignore file generated by rails new includes storage entries even when skip_storage? is true
2 participants