Open
Conversation
2aa554a to
51eff9f
Compare
Rails 8.1 removed the ExplainSubscriber class (commit f488878f1bc), causing test failures with: NameError: uninitialized constant ActiveRecord::ExplainSubscriber The ExplainSubscriber functionality was refactored into ExplainRegistry with lazy subscription - instead of subscribing at initialization, Rails 8.1 now subscribes only when .explain is first called via ExplainRegistry.start. The spec_helper.rb line that manually subscribed to ExplainSubscriber is no longer needed or valid. Rails 8.1 handles the subscription automatically and lazily. Related Rails commit: - f488878f1bc "Refactor ExplainRegistry to only be subscribed once used" - Author: Jean Boussier - Date: Thu Sep 25 10:37:09 2025 +0200 - Link: rails/rails@f488878
Switch from pre-release alpha constraint to stable release constraint for ActiveRecord 8.1.0 dependency, following Rails 8.1 stable release.
Document Rails 8.1 support with installation instructions, including the gem version constraint for activerecord-oracle_enhanced-adapter 8.1.
51eff9f to
6343999
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is a sister PR to #2480, containing the same Rails 8.1 compatibility changes but without the CLOB-related fixes. This allows for separate review of the core Rails 8.1 API changes.
Relationship to Other PRs
Recommendation
While this PR can be merged independently, I strongly recommend also including #2485 and #2486 in the 8.1 release. Rails 8.1 changes
prepared_statementsdefaults in ways that will exacerbate CLOB insertion issues for users who haven't explicitly configured this setting.Changes Included
All core Rails 8.1 API compatibility fixes from @akostadinov's work in #2471:
dump_schema_information→dump_schema_versionsWhat's NOT Included
The CLOB/BLOB fixes from #2485 and #2486:
before_create/after_createcallbacks for LOB writesCredits
The vast majority of this work was done by Aleksandar N. Kostadinov (@akostadinov) and Daria Mayorova (@mayorova) in PR #2471.
Testing
CI will verify tests pass against Rails 8.1 (8-1-stable branch).