Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'debug/database-creation' into develop

  • Loading branch information...
commit a0eba91fed519a76e881e420a1f410bdb55ae0bf 2 parents 4524ae8 + 93054de
Raphaël Bleuse authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 config/initializers/db.coffee
View
8 config/initializers/db.coffee
@@ -13,7 +13,9 @@ createDb = ->
else if exists
console.log "Database Cozy found."
else
- console.log "database does not exists."
- db.create()
-createDb()
+ console.log "Database Cozy does not exist."
+ db.create ->
+ console.log "Database Cozy created."
+ return
+createDb()
Please sign in to comment.
Something went wrong with that request. Please try again.