mysql2 LoadError on Rails 6.1.7 / Ruby 3.0.0
ronaparte
HOBBY
17 days ago
Hi,
I'm stuck with a LoadError: cannot load such file -- active_record/connection_adapters/mysql_adapter
during my Rails build on Railway, specifically at the rake assets:precompile
stage.
Rails 6.1.7 / Ruby 3.0.0
bundle install
completes successfully (meaningmysql2
gem is installed).My
Gemfile
usesgem 'mysql2'
(no strict version constraint).I've tried adding
nixpacks.toml
withapt_packages = ["libmysqlclient-dev"]
I think all ENV variables are correct
Could you please investigate? I can provide project/service IDs and full build logs.
Thanks,
Ron