Since arel is in rails, it has become even more "private" API with possibility of breaking changes - lets see how it goes.
Article with conclusions and explanations: Does my old Arel queries work in Rails 7
lounch the environment first with docker-compose up
Warning - your contaider names can be different, you can check them with docker ps
docker exec -it arel_for_rails-rails_6-1 rails db:create db:migrate db:seed
docker exec -it arel_for_rails-rails_6-1 /bin/bash
docker exec -it arel_for_rails-rails_7-1 /bin/bash
docker exec -it arel_for_rails-rails_6-1 bundle exec rails spec
docker exec -it arel_for_rails-rails_7-1 bundle exec rails spec
docker exec -it arel_for_rails-rails_6-1 bundle exec rubocop
docker exec -it arel_for_rails-rails_7-1 bundle exec rubocop
Attention - if you want to add tables since db folders are shared, please genereate migrations in rails 6 app (or lowest version if you decide to add such).
docker-compose run --no-deps rails_6 rails new . --force --database=postgresql --api --skip-test
docker-compose run --no-deps rails_7 rails new . --force --database=postgresql --api --skip-test
# rails 8?