build fix: railties tests used deprecated `SchemaCache` methods.