sequelize-fixtures
Advanced tools
Comparing version 0.5.2 to 0.5.3
{ | ||
"name": "sequelize-fixtures", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "sequelize fixture loader", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,7 +25,9 @@ [![Build Status](https://travis-ci.org/domasx2/sequelize-fixtures.svg?branch=master)](https://travis-ci.org/domasx2/sequelize-fixtures) | ||
```javascript | ||
var sequelize_fixtures = require('sequelize-fixtures'), | ||
models = { | ||
Foo: require('./models/Foo') | ||
}; | ||
const sequelize_fixtures = require('sequelize-fixtures'); | ||
//a map of [model name] : model | ||
//see offical example on how to load models | ||
//https://github.com/sequelize/express-example/blob/master/models/index.js | ||
const models = require('./models'); | ||
//from file | ||
@@ -32,0 +34,0 @@ sequelize_fixtures.loadFile('fixtures/test_data.json', models).then(function(){ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51943
404