I would like to know if there is any possibility of adding more fields to the user table generated by Devise because I need to relate it to others, and add more information. Is there any problem in doing so?
I would like to know if there is any possibility of adding more fields to the user table generated by Devise because I need to relate it to others, and add more information. Is there any problem in doing so?
There's no problem, it's a table like any other.
Create a migration and add fields.
I solved by adding these lines in the controller application
before_action :configure_permitted_parameters, if: :devise_controller?
protected
def configure_permitted_parameters
devise_parameter_sanitizer.permit(:sign_up, keys: [:nome])
devise_parameter_sanitizer.permit(:sign_up, keys: [:ativo])
end