rake db migrate code example Example 1: ruby on rails db migrate rails db:migrate Example 2: see migration history rails rake db:migrate:status