ActiveRecordColumnTypes - Create a 'Mixed' option
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 873
- Forks
- 164
- Avg merge
- 4d 27m
- Merged PRs (30d)
- 9
Description
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
persistedmode.
Another possible name might be untyped-only
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with manual/compiler_activerecordcolumns.md, which describes the ActiveRecordColumnTypes options, then locate the implementation and tests for those options. Done means adding a mixed or untyped-only option where non-nil fields remain untyped and nilable fields receive persisted-mode typing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100