Day 36: Enums
- We looked at enumeration(enums) and how to declare them and most importantly what really happens when two enums with same values are defined.
- @kuldeepaggarwal and caleb(coach) gave us solutions to the RSpec pending pr and after several trials it didn't really work and decided to schedule another call on the same tomorrow.
What we learnt
- An enum generates methods with the values contained in it so defining two enums with same values may cause conflict with the an existing ActiveRecord method so how do we fix this? May be rename values for one enum or suffix/prefix the values
You must be logged in to add a comment.