Fix the automigrate issue

See https://github.com/strongloop/loopback-example-relations-basic/issues/6
Merge pull request #332 from strongloop/feature/fix-memory-automigrate

Fix the automigrate issue