Closed notmarkmiranda closed 1 month ago
Closes #3
This PR introduces several new features and improvements:
User Model & Migration:
User
phone_number
Validations:
Faker Gem Integration:
factory_bot
phonelib
faker
before_validation
users
Closes #3
Description
This PR introduces several new features and improvements:
User Model & Migration:
User
model with the necessary database migration.phone_number
attribute using the Phonelib gem.Validations:
phone_number
is present, unique, and correctly formatted.Faker Gem Integration:
factory_bot
.Changes
phonelib
andfaker
gems.User
model with the necessary validations and abefore_validation
callback to format the phone number.users
table with the required fields.users
table.User
model.User
model to ensure phone number validation and formatting.