pascalh1011/migrant — comment on commit 22abed51b31fb43208ab20e5d7c9281cf0c0ffdd
File:  line 0
By KieranP:

Better to use classify I think, rather than camelize. And you can use File.basename instead of your sub/match.

```
Dir[Rails.root.join('app/models/**/*.rb').to_s].each do |filename|
File.basename(filename, '.rb').classify.constantize
end
```