rails/rails — pull request #16350 by JackDanger (2014-07-30 22:00:15+00:00)
Title: 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`