Created
August 1, 2014 13:11
-
-
Save mosampaio/b636d4d4685e027d9cbc to your computer and use it in GitHub Desktop.
nodebr_sugestao
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imovel.find({}).remove(function() { | |
Imovel.create({ | |
name : 'Fazenda xoxa', | |
info : 'Fazenda em xoxa' | |
}, function(err, imovel){ | |
Imovel.create({ | |
name : 'Fazenda carapebus', | |
info : 'Fazenda em carapebus', | |
relacao: imovel | |
}) | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment