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

Upgrade to Rails 7.1 (Scratch) #35

Closed
wants to merge 12 commits into from
Closed

Upgrade to Rails 7.1 (Scratch) #35

wants to merge 12 commits into from

Conversation

bpurinton
Copy link
Contributor

@bpurinton bpurinton commented May 29, 2024

Resolves #26

See https://guides.rubyonrails.org/upgrading_ruby_on_rails.html for helpful guide on 7.0 -> 7.1 updating


Not sure what's causing it, but I'm getting mysterious new shm and wal sqlite files when the bin/setup runs. Similar to what this person reported happening (but without a clear resolution): https://discuss.rubyonrails.org/t/new-temp-files-for-sqlite3-shm-wal/83837

I resolved that on the big commit: e553666; I believe it had to do with changes to the bin/setup file. Seems to work fine now.


Getting some deprecation warnings apparently from Devise that are a known (still unfixed) issue:

heartcombo/devise#5644

I fixed this, per the suggestion on that issue, on the commit: f07607e

Edit: ☹️ well that doesn't work because as soon as one runs rails generate devise:install and overwrites the included initializer, the deprecation warnings come back.. It does work though if I just give the little patch a different name: 1992701. A bit awkward but don't see another work around until they make an official fix to the gem


Everything seems to work when I:

  • Open this PR in a codespace
  • Run rails generate devise:install
  • Scaffold a mini blog including User accounts
  • Run rspec
  • Run rails console
  • Play around in the bin/server live preview

TODO: For final testing, create a branch of e.g. Photogram Final and try to use this PR as a base template to see if everything keeps working as expected.

Additional testing done in: https://github.com/matchthetarget/photogram-final-rails-7-2-test

@bpurinton bpurinton changed the title Upgrade to Rails 7.1 and upgrade gems Upgrade to Rails 7.1 May 29, 2024
@@ -3,7 +3,7 @@
{
"name": "Container",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "firstdraft/appdev-rails-template",
"image": "firstdraft/appdev-rails-template-for-testing",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO; remove / replace the original image when done testing

@bpurinton bpurinton changed the title Upgrade to Rails 7.1 Upgrade to Rails 7.1 (Scratch) May 30, 2024
@bpurinton bpurinton closed this May 30, 2024
@bpurinton bpurinton deleted the bp-version-bumps branch May 30, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade rails to ~> 7.1
1 participant