Permalink
Browse files

fix DB creation : (see #1)

  • Loading branch information...
1 parent 4524ae8 commit 93054deea5315731150b3f809137ef8d2b00d658 Raphaël Bleuse committed Aug 31, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 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()

0 comments on commit 93054de

Please sign in to comment.