Migrations and Headaches
The command to generate the model also produced a migration: CreateChecks. To run it:
rake db:migrate
and the checks table will be added to the database (the default DBMS is SQLite) while to undo its effects you can run
rake db:rollback
The migration is just the way Rails saves us the hassle of generating tables for our models in the database. We can move or copy the whole application to another machine and/or to another DBMS, and replicate the database structure by just running the migrations again.
Additional Links:
Migrations
ActiveRecord::Migration










