Skip to content

Commit

Permalink
add link to migration templates files to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
okv committed Jan 22, 2020
1 parent 516fee2 commit dafdd05
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ callback.

east mongo package also provides following migration templates:

* lib/migrationTemplates/promises.js - default migration template, uses
built-in `Promise` in `migrate`, `rollback` functions.
* lib/migrationTemplates/async.js - migration template that uses async
functions to describe `migrate`, `rollback` functions.
* [lib/migrationTemplates/promises.js](lib/migrationTemplates/promises.js) -
default migration template, uses built-in `Promise` in `migrate`,
`rollback` functions.
* [lib/migrationTemplates/async.js](lib/migrationTemplates/async.js) -
migration template that uses async functions to describe `migrate`,
`rollback` functions.

Default migration template will be used if `template` is not set. To get path
of another template `require.resolve` could be used, e.g. at `.eastrc`:
Expand Down

0 comments on commit dafdd05

Please sign in to comment.