Hello I'm working with Ruby On Rails, and for platform authentication I'm using gem 'devise'. I came across a situation where I need to add new fields for user registration (Date of birthday, gender, etc ...) and the device only provides me the basic resources (email, password). To add these fields do I need to simply put them inside the migration or do I need to do some extra steps?
Part of the code generated by devise:
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.