Instead of generating a model directly . . . let's set up a scaffold. A scaffold in Rails is a full set of model, database migration for that model, controller to manipulate it, views to view and manipulate the data, and a test suite for each of the above.
Here's an example of scaffolding a resource called
Task with a string name and a text description:
rails generate scaffold Task name:string description:text
This will generate the following files:
example to delete files generated by scaffold for the resource called
rails destroy scaffold Task