Skip to content

ActiveRecordColumnTypes - Create a 'Mixed' option #2369

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions