notmarkmiranda / careless-whisper

0 stars 0 forks source link

feature: add user model & migration #12

Closed notmarkmiranda closed 1 month ago

notmarkmiranda commented 1 month ago

Closes #3

Description

This PR introduces several new features and improvements:

  1. User Model & Migration:

    • Adds a User model with the necessary database migration.
    • Includes validations for the phone_number attribute using the Phonelib gem.
  2. Validations:

    • Ensures phone_number is present, unique, and correctly formatted.
  3. Faker Gem Integration:

    • Introduces the Faker gem for generating test data in factory_bot.
    • Faker will also be utilized in production to auto-generate nicknames.

Changes