From df9c0bda6b22c365c1d3007b6766fe8b416ab03d Mon Sep 17 00:00:00 2001 From: Antonio Pagano Date: Fri, 8 Jun 2018 18:33:19 -0500 Subject: [PATCH] moving the tests to use filemigrator instead of migrateup metho --- buffalo/cmd/test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/buffalo/cmd/test.go b/buffalo/cmd/test.go index 32971dce2..5589691bf 100644 --- a/buffalo/cmd/test.go +++ b/buffalo/cmd/test.go @@ -73,7 +73,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 }