diff --git a/buffalo/cmd/test.go b/buffalo/cmd/test.go index 154604780..a70387ee8 100644 --- a/buffalo/cmd/test.go +++ b/buffalo/cmd/test.go @@ -90,7 +90,12 @@ func findSchema() io.Reader { } if test, err := pop.Connect("test"); err == nil { - if err := test.MigrateUp("./migrations"); err == nil { + fm, err := pop.NewFileMigrator("./migrations", test) + if err != nil { + return nil + } + + if err := fm.Up(); err == nil { if f, err := os.Open(filepath.Join("migrations", "schema.sql")); err == nil { return f }