Check db/migrate/ instead of schema.rb

This avoids the problems with schema_format :sql. Fixes #57, #59 and #74.