What Does load_defaults Do?

1 · fastruby.io · Sept. 15, 2022, 10 p.m.
Let’s begin with a simple question: Have you seen config.load_defaults 6 in any application? 6 is an argument and could vary, I’m just giving an example. While upgrading a Rails application from 5.1 to 6.0 we had an “easy” question. Should We Run the rails app:update Command? The quick answer is: yes, we should, why not?! After running the rails app:update command, there are many file changes that the command did for us. It was time to run the test suite, and guess what? Everything failed. Th...