Lesson

Add Custom Fields to a Devise User Model with a Ruby on Rails Migration

When you create a User model with Devise using the command rails generate devise User. Devise will create default columns in the database for your User model. To add your own columns for your users you can create a new Rails migration and add any columns you...

Duration
3 min
Access
Free
Transcript
Available

When you create a User model with Devise using the command rails generate devise User. Devise will create default columns in the database for your User model. To add your own columns for your users you can create a new Rails migration and add any columns you want for your users.