knex/src/seed/seed-stub.js

16 lines
354 B
JavaScript
Raw Normal View History

2015-05-09 13:58:18 -04:00
// Stub Seed:
// Used for now in browser builds, where filesystem access isn't
// available.
const StubSeed = (module.exports = function() {});
2015-05-09 13:58:18 -04:00
const Bluebird = require('bluebird');
2015-05-09 13:58:18 -04:00
const noSuchMethod = Bluebird.method(function() {
throw new Error('Seeds are not supported');
2015-05-09 13:58:18 -04:00
});
StubSeed.prototype = {
make: noSuchMethod,
run: noSuchMethod,
2015-05-09 13:58:18 -04:00
};