How to add more fields to the user table with gem Devise

2

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?

    
asked by anonymous 02.04.2015 / 21:06

2 answers

2

There's no problem, it's a table like any other.

Create a migration and add fields.

    
02.04.2015 / 22:47
0

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
    
24.01.2017 / 00:39