Checking for version of Rails < v3.1.0 which do not have migrations_paths defined
Rails is a module, not a class
Merge pull request #1 from johnschult/master

Fixed to work with earlier versions of Rails