1
Hello I am working with Ruby On Rails, and for platform authentication I am using Gem 'Devise'. I came across a situation where I need to add new fields for user registration (Birthday date, gender, etc...) and the device only provides me with basic features (email, password). To add these fields I need just put inside the Migration or I need to do some more steps ?
Part of the code generated by the Visa:
def change
create_table :members do |t|
## Database authenticatable
t.string :email, null: false, default: ''
t.string :encrypted_password, null: false, default: ''
To add new fields just do this ?
def change
create_table :members do |t|
## Database authenticatable
t.string :email, null: false, default: ''
t.string :encrypted_password, null: false, default: ''
t.string :MEU_NOVO_CAMPO, null: true, default: ''
Thank you.