Add ActiveRecord::Tasks::DatabaseTasks.migrate

This extracts the logic that was embedded in a Rake task into a static method.
Bonus: the first test for `rake db:migrate`
nit: Let's add a space here ;)