Skip to content

Ongoing rails support#38

Merged
noelrappin merged 3 commits intomainfrom
ongoing-rails-support
Feb 12, 2026
Merged

Ongoing rails support#38
noelrappin merged 3 commits intomainfrom
ongoing-rails-support

Conversation

@noelrappin
Copy link
Collaborator

No description provided.

@noelrappin noelrappin marked this pull request as ready for review February 12, 2026 23:20
@cursor
Copy link

cursor bot commented Feb 12, 2026

PR Summary

Medium Risk
Upgrades Rails/Ruby compatibility by changing ActiveRecord adapter hooks and enum/attribute decoration behavior, which could subtly affect enum SQL generation and type casting across supported Rails versions.

Overview
Drops support for older Rails/Ruby and bumps the gem to sql_enum v2.0.0. The gemspec now requires Ruby >= 3.2.0 and activerecord/activesupport >= 7.1.0, and the README guidance is updated accordingly.

Rails adapter integration is simplified for Rails 7.1+ (always registering the enum type via Mysql2Adapter::TYPE_MAP), type_to_sql handling for :enum is implemented via a prepend override, and sql_enum attribute decoration is updated to work with newer enum/attribute internals (including decorate_attributes and unwrapping ActiveRecord::Enum::EnumType). Enum value introspection now prefers ActiveRecord::Base.with_connection when available.

CI/dev tooling is updated to test Rails 7.18.1 across Ruby 3.24.0, refreshes Appraisal gemfiles, bumps the Docker image to Ruby 3.4, and updates .gitignore for built gems and local Claude files.

Written by Cursor Bugbot for commit b71f82a. This will update automatically on new commits. Configure here.

@noelrappin noelrappin merged commit 414d912 into main Feb 12, 2026
17 checks passed
@noelrappin noelrappin deleted the ongoing-rails-support branch February 12, 2026 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants