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
app:update
from Rails 7.1.2 to 7.1.3 creates new_framework_defaults_7_1.rb
#50792
Comments
new_framework_defaults_7_1.rb
fileapp:update
for Rails 7.1.2 to 7.1.3 creates new_framework_defaults_7_1.rb
file
app:update
for Rails 7.1.2 to 7.1.3 creates new_framework_defaults_7_1.rb
fileapp:update
from Rails 7.1.2 to 7.1.3 creates new_framework_defaults_7_1.rb
I don't think
It's seems to be mostly typo's, of course there could be a bug fix in here. |
I was following the update guide on https://guides.rubyonrails.org/upgrading_ruby_on_rails.html, because i wanted to know, what is the right way to update rails. There was no difference made, which version i want to upgrade, when i was reading the section 1.4 The Update Task |
This issue has been automatically marked as stale because it has not been commented on for at least three months. |
This is still an issue |
@GitToTheHub Would you be open to creating a pull request to the guides that clarifies the language there to not run the update task on patch version updates? |
Sure, where can I make a pr for this? Are the guides in this repo? |
Guides are in this repo. I think the file you would probably want to edit is https://github.com/rails/rails/blob/main/guides/source/upgrading_ruby_on_rails.md You may want to scan Contributing to Ruby on Rails — Ruby on Rails Guides first. |
Ok thanks, i will do it :) Greetings |
Steps to reproduce
I made an update from Rails 7.1.2 to 7.1.3 by changing the rails version number to 7.1.3 in the gemfile and running
bundle update
. After that i ranrails app:update
which produced the fileconfig/initializers/new_framework_defaults_7_1.rb
. I already haveconfig.load_defaults 7.1
in myconfig/application.rb
, so I think, this file shouldn't be generated?Expected behavior
The file
config/initializers/new_framework_defaults_7_1.rb
should not be created, ifconfig.load_defaults 7.1
is already present inconfig/application.rb
.Actual behavior
The file
config/initializers/new_framework_defaults_7_1.rb
is created afterrails app:update
, despiteconfig.load_defaults 7.1
is already present inconfig/application.rb
.System configuration
Rails version: 7.1.3
Ruby version: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x64-mingw-ucrt]
The text was updated successfully, but these errors were encountered: