Last active
September 16, 2021 20:41
-
-
Save tdubs42/b74e109ce8d6fece6160dae8e232cd34 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// always use as first seed file to clean db | |
const cleaner = require('knex-cleaner') | |
exports.seed = function (knex) { | |
return cleaner.clean(knex, { | |
mode: 'truncate', // resets ids | |
ignoreTables: [ | |
'knex_migrations', | |
'knex_migrations_lock' | |
], | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment