Skip to content
Sébastiaan edited this page Mar 5, 2020 · 7 revisions
  1. Hint 1
  2. Hint 2
  3. Hint 3
  4. Hint 4
  5. Hint 5 (you're here)
  6. Hint 6
  7. Hint 7

Hint 5: Allowing the field to be empty

Here's the analysis again:

  • It's about users.
  • We need to add a field to the profile.
  • It's a field for the shoe size.
  • The field should only accept values from 39 until 47.
  • It can be empty.
  • It should be editable on the admin member edit page.
  • It should be visible on the public user profiles.

We have another bullet, the 5th, that says something about the field: It can be empty. This one should be quite easy, check the possible field options and don't scroll once you've opened that link..

Now since this is the last bullet that says something about the requirements for the field you probably want to take a look at migrations.

You can find a spoiler here.

Clone this wiki locally