diff --git a/src/guide/migrations.md b/src/guide/migrations.md index 6954e152..9fe3c2c2 100644 --- a/src/guide/migrations.md +++ b/src/guide/migrations.md @@ -222,6 +222,21 @@ module.exports = { }; ``` +### Custom migration name + +You may provide a custom migration name to be used in place of the default option. + +```js +module.exports = { + client: 'pg', + migrations: { + getNewMigrationName: (name) => { + return `${+new Date()}-${name}.js`; + } + } +}; +``` + ### Generated migration extension You can control extension of generated migrations.