Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No seeders found. #403

Closed
trjstewart opened this issue Dec 16, 2016 · 0 comments
Closed

No seeders found. #403

trjstewart opened this issue Dec 16, 2016 · 0 comments

Comments

@trjstewart
Copy link

I currently have a single seed in my database that runs perfectly when I run $ sequelize db:seed:all but fails to roll back with the below error when I run sequelize db:seed:undo:all.

$ sequelize db:seed:undo:all

Sequelize [Node: 6.4.0, CLI: 2.5.1, ORM: 3.27.0, pg: ^6.1.1]

Loaded configuration file "config\config.json".
Using environment "development".
No seeders found.

seed file

'use strict';

module.exports = {
  up: function (queryInterface, Sequelize) {
    return queryInterface.bulkInsert('Users', [
      { id: 1, email: '[email protected]', password: '$2a$10$hCZC0BpJ4HiVs2jAVZpYHOz2tyxV0UXlL07McVM50Y5Tsi4VgN75G', mobile: '0413192125', createdAt: new Date(), updatedAt: new Date(), deletedAt: null },
    ]);
  },

  down: function (queryInterface, Sequelize) {
    return queryInterface.bulkDelete('Users', null, {});
  }
};

config

"development": {
    "username": "correct_username",
    "password": "correct_password",
    "database": "correct_database",
    "host": "correct_host",
    "port": 5432,
    "dialect": "postgres",
    "seederStorage": "sequelize"
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant