commit
768dc4a7b0
|
@ -9,9 +9,7 @@ var schema = {
|
||||||
|
|
||||||
var Color = app.model('color', schema);
|
var Color = app.model('color', schema);
|
||||||
|
|
||||||
app.dataSource('db', {adapter: 'memory'});
|
app.dataSource('db', {adapter: 'memory'}).attach(Color);
|
||||||
|
|
||||||
Color.dataSource('db');
|
|
||||||
|
|
||||||
Color.create({name: 'red'});
|
Color.create({name: 'red'});
|
||||||
Color.create({name: 'green'});
|
Color.create({name: 'green'});
|
||||||
|
|
Loading…
Reference in New Issue