rails/rails — pull request #8500 by senny (2012-12-12 20:56:23+00:00)
Title: recognize migrations, in folders containing numbers and 'rb'

The Regexp was to wide and matched folders named with numbers and the text 'rb' as a migration. This led to problems when you have a migration inside a subdirectory named eg. "10_urban".

I added a test-case to reproduce the issue and made the Regexp more strict. I think this can be safely backported to `3-2-stable`.

Fixes #8492