generate users controller
generate user model
run the migration
add user model validations
add_index_to_users_email
enforce email uniqueness
run the migration