Skip to content

ActiveRecordColumnTypes - Create a 'Mixed' option #2369

@zack-freedman-shopify

Description

@zack-freedman-shopify

Referencing this page.

I'm wondering if we could create a new mixed option that is between nilable and untyped. If the only reason we mark columns as 'untyped' is non-nil fields might be nilable before save, there's no actual reason that truly nilable columns should be untyped.

I'm proposing a ActiveRecordColumnTypes called mixed:

  • Non-nil fields continue to be untyped
  • Nilable fields get typed consistently with persisted mode.

Another possible name might be untyped-only

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions