Skip to content

Commit

Permalink
Merge pull request lambda-replate#42 from lambda-replate/joshua-timmons
Browse files Browse the repository at this point in the history
testing new cleanup file
  • Loading branch information
josh182014 authored Jun 27, 2019
2 parents fa82180 + da0bb46 commit 064e188
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
Binary file modified data/development.db3
Binary file not shown.
20 changes: 14 additions & 6 deletions data/seeds/000-cleanup.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
const cleaner = require('knex-cleaner');
// const cleaner = require('knex-cleaner');

// exports.seed = knex => {
// return cleaner.clean(knex, {
// ignoreTables: ['knex_migrations', 'knex_migrations_lock'],
// mode: 'truncate'
// });
// };

exports.seed = knex => {
return cleaner.clean(knex, {
ignoreTables: ['knex_migrations', 'knex_migrations_lock'],
mode: 'truncate'
});
};
return knex('food').truncate().then(function() {
return knex('volunteers').truncate().then(function() {
return knex('businesses').truncate()
})
})
}

0 comments on commit 064e188

Please sign in to comment.