Foreign Key Use

http://api.rubyonrails.com/classes/ActiveRecord/Migration.html
http://wiki.rubyonrails.org/rails/pages/UsingMigrations