Fixed to work with earlier versions of Rails

Rails version ~3.0.0 does not include the `migrations_paths` method.