Now that the Projects model has been generated, it needs to be completed by defining our enums.
liturgy was defined as an integer, since it can become an enum of withMass, withoutMass, and catholicNonCatholic.
Likewise for the Users model, when it will be generated, role can be defined as an enum of bride, groom, celebrant (in reference to the users that have access to the project). Perhaps we could add something like guest to this list, for any other user that the first the couple would like to invite, for example the Graphic Designer / Typographer / Printing Shop.
In the WeddingPartyMembers model, should we define partyMemberRole as an enum also? With a predefined set of roles such as Father, Mother, Parent, Grandparent, Grandfather, Grandmother, Brother, Sister, Friend, Aunt, Uncle etc. ? Or would that be better left as a string, for greater freedom, simply offering some of these suggestions in the UI?
Now that the Projects model has been generated, it needs to be completed by defining our
enum
s.liturgy
was defined as an integer, since it can become anenum
ofwithMass
,withoutMass
, andcatholicNonCatholic
.Likewise for the
Users
model, when it will be generated,role
can be defined as anenum
ofbride
,groom
,celebrant
(in reference to the users that have access to the project). Perhaps we could add something likeguest
to this list, for any other user that the first the couple would like to invite, for example the Graphic Designer / Typographer / Printing Shop.In the
WeddingPartyMembers
model, should we definepartyMemberRole
as an enum also? With a predefined set of roles such asFather
,Mother
,Parent
,Grandparent
,Grandfather
,Grandmother
,Brother
,Sister
,Friend
,Aunt
,Uncle
etc. ? Or would that be better left as a string, for greater freedom, simply offering some of these suggestions in the UI?Some suggestions on creating enums here: https://naturaily.com/blog/ruby-on-rails-enum