Conversation
cavis
left a comment
There was a problem hiding this comment.
Question on ordering, but looks good.
| @@ -1,5 +1,5 @@ | |||
| class Person < ApplicationRecord | |||
| enum :role, %w[host producer guest].to_enum_h, prefix: true, allow_nil: true | |||
| enum :role, %w[editor host producer guest].to_enum_h, prefix: true, allow_nil: true | |||
There was a problem hiding this comment.
This is the sort order, so will put "Editor" first in the dropdown - is that your intention?
There was a problem hiding this comment.
idk if order matters much with only 4 options - alphabetical? add this at the end?
If I were to guess at the usage, I would guess host is only on the podcast, not specified on each episode unless it is a different host for one episode.
So, %w[guest host producer editor]? Whaddya think B?
There was a problem hiding this comment.
I went alphabetical, because it was naturally in alphabetical order. But yea, I hear this. Because its on both the Podcast & Episode I might suggest:
[host producer editor guest]
closes #1455