Make an attribute to mark a record as primary?

I have a table that store phone number for people. I want them to be
able to select the main default phone number in all of the records for
that contact. Which means that only one record can be marked as main.
Isn’t there a built in rails tool or method for this?

Thanks for your help.