I'm trying to edit the devise sign up flow so that when a new user signs up I automatically add a row to a specific table with all default values. What is the best way to do this?
Some thought process:
Thank you!
You can add an after_create
callback to your User
model.
class User < ApplicationRecord
after_create :set_defaults
def set_defaults
SomeTable.create(user_id: self.id, column1: some_value, column2: some_value.....)
end
end