Skip to content

WA-RAILS7-020: ActiveRecord attribute API changes #751

@kitcommerce

Description

@kitcommerce

Summary

Rails 7 changed how custom attribute types are registered. Workarea uses Mongoid (not ActiveRecord), but may have AR compatibility shims or test helpers affected.

Approach

  1. Search codebase for ActiveRecord::Type.register
  2. Search for custom attribute type classes
  3. Check test/dummy apps for AR usage
  4. Update to Rails 7 attribute type API if needed

Objective

Ensure any ActiveRecord usage (test helpers, compatibility layers) works with Rails 7.

Client Impact

None expected (Workarea uses Mongoid). This is defensive.

Acceptance Criteria

  • Grep finds all ActiveRecord::Type usage
  • No deprecated attribute type registration found
  • Test dummy apps boot clean on Rails 7

Verification Plan

Run test dummy apps under Rails 7.0 and 7.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions