The code example allows a year of birth to fall from 1900 through 2022:
|> validate_inclusion(:year_of_birth, 1900..2022)
The book publication date is projected in 2023. I suggest updating the upper validation limit to 2023.
The code example allows a year of birth to fall from 1900 through 2022:
|> validate_inclusion(:year_of_birth, 1900..2022)
The book publication date is projected in 2023. I suggest updating the upper validation limit to 2023.