jish/pre-commit — pull request #163 by mattbrictson (2014-08-20 03:31:03+00:00)
Title: Strictly check version numbers in migrations.

Improve version number discovery in schema and migration files so that a blank `schema.rb` (with version `0`) does not fail the migration check.

This code assumes schema version numbers always match the pattern `/\d{14}/`.

Fixes #162