Merge pull request #15269 from arunagw/aa-fixes-8930

rake railties:install:migrations respects the order of railties

Conflicts:
	activerecord/CHANGELOG.md
	railties/lib/rails/application.rb