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

Don’t create storage folder if not needed #51837

Merged
merged 1 commit into from
May 20, 2024

Conversation

jeromedalbert
Copy link
Contributor

@jeromedalbert jeromedalbert commented May 15, 2024

Motivation / Background

Fixes #51835.

This Pull Request has been created because the storage/ directory seems to be used only for sqlite or
Active Storage. If using a different database and the --skip-active-storage option, this directory does not seem like it is needed.

Detail

This Pull Request changes the rails app generator to not create the storage directory if skipping Active Storage and using a database that is different from sqlite.

Additional information

The condition I implemented is the same as the one used further down in the generator.

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.

The storage/ directory is used for sqlite or
Active Storage. If using a different database
and the --skip-active-storage option, this
directory is not needed.
@yahonda yahonda merged commit ba6e556 into rails:main May 20, 2024
3 checks passed
rafaelfranca pushed a commit that referenced this pull request May 21, 2024
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.

Storage folder seems like it is sometimes not needed
3 participants