class Overcommit::Hook::PreCommit::RailsSchemaUpToDate

Check to see whether the schema file is in line with the migrations. When a schema file is present but a migration file is not, this is usually a failure. The exception is if the schema is at version 0 (i.e before any migrations have been run). In this case it is OK if there are no migrations.