Extract AR::SchemaMigration.normalized_versions method
Use AR::SchemaMigration.table_exists? call instead of longish AR::Base...etc,etc