Generate a User model

Create a User model with two attributes, name and email.

$ rails generate model User name:string email:string
$ rake db:migrate
Test for the existence of name and email attributes
Validate presence

Validate the presence of the name and email attributes.
Validate name length
Validate email format
Validate email uniqueness
Enforce uniqueness at the database level