summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/models.go b/models/models.go
index a95468e036..3a83929a77 100644
--- a/models/models.go
+++ b/models/models.go
@@ -196,6 +196,10 @@ func NewEngine() (err error) {
return err
}
+ if err = x.Ping(); err != nil {
+ return err
+ }
+
if err = migrations.Migrate(x); err != nil {
return fmt.Errorf("migrate: %v", err)
}