diff --git a/example/colors/app.js b/example/colors/app.js index a7fdb01f..e182f926 100644 --- a/example/colors/app.js +++ b/example/colors/app.js @@ -9,9 +9,7 @@ var schema = { var Color = app.model('color', schema); -app.dataSource('db', {adapter: 'memory'}); - -Color.dataSource('db'); +app.dataSource('db', {adapter: 'memory'}).attach(Color); Color.create({name: 'red'}); Color.create({name: 'green'});