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

rake railties:install:migrations respects the order of railties