Skip to content

Make ActiveRecord version check stricter to ensure Rails 8.1 compatibility#217

Closed
vrodokanakis wants to merge 2 commits intoPNixx:masterfrom
vrodokanakis:master
Closed

Make ActiveRecord version check stricter to ensure Rails 8.1 compatibility#217
vrodokanakis wants to merge 2 commits intoPNixx:masterfrom
vrodokanakis:master

Conversation

@vrodokanakis
Copy link
Copy Markdown

This pull request fixes compatibility with Rails 8.1. Right now, master branch doesn't work with Rails 8.1 due to underlying changes in ActiveRecord.

In ActiveRecord 8.1, due to this MR, method build_arel in lib/active_record/relation/query_methods.rb now accepts again only one aliases argument.

The change introduces a more precise version check, in order to no pass two arguments in super when we are using Rails 8.1+.

@vrodokanakis
Copy link
Copy Markdown
Author

It seems that CI is failing due to Rails 8.1 changes in quote_default_expression in ActiveRecord::ConnectionAdapters::Quoting

This means that schema creation doesn't work due to this.

How would you like @PNixx to approach this?

@PNixx PNixx closed this Nov 5, 2025
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.

2 participants