Hi,
I’m a Ruby on Rails developer and I switched from Workstation to Silverblue 2 weeks ago.
I installed rbenv and ruby from a Toolbox container.I installed the gems with Bundler started the ruby on rails server. But I noticed something wrong with migrations rails db:migrate
on an application relying on Redmine.
Mysteriously, migrations started fine but stopped everytime at the 37 - in Redmine, migrations are incremental and not timestamped. No way to pass the 38 and higher.
I found the issue on Stackoverflow ruby - Rails rake db:migrate doesn't work: nothing happens - Stack Overflow after have been struggling many hours . It’s an issue known by Toolbox: VERSION environment variable set can cause troubles · Issue #261 · containers/toolbox · GitHub
The cause was the VERSION
environment variable set by the Toolbox/Podman image. I use the image of Fedora Workstation 37 in Toolbox(then VERSION is set to 37). Then when I enter in the container VERSION was initialized to 37. This same environment variable is used by the tool db:migrate
.
To fix this issue, I put unset VERSION
in my ~/.zshrc
Maybe, it can help someone…