Example repositry for generating a profile model when a user signs up, using the Rails has_one & before_create methods.
Here is a short article on how to implementing this into your own rails project: https://medium.com/@stefanmostert/generating-models-when-a-user-signs-up-rails-has-one-before-create-methods-92cc5913c79d
$bundle
$rake db:migrate
$rails s