title: How to insert initial data using sequelize migrations/seeds?
body: <p>I'm trying to create my initial migration to populate the test database but I can't get it working. This is what I have in my migration:</p>
  
  <pre><code>'use strict';
  
  module.exports = {
    up: function (queryInterface, Sequelize) {
      return [
        queryInterface.bulkInsert('Users', [
          { username: "user1" },
          { username: "user2" }
      ])];
    },
  
    down: function (queryInterface, Sequelize) {
      return queryInterface.dropTable('Users');
    }
  };
  </code></pre>
  
  <p>And I get this error:</p>
  
  <pre><code>== 20151024144833-create-conjugation: migrating =======
  { [SequelizeUniqueConstraintError: Validation error]
    name: 'SequelizeUniqueConstraintError',
    message: 'Validation error',
    errors: [],
    fields: [] }
  </code></pre>
  
  <p>There must be an easier way to do this. I've checked other SO questions, but the syntax has changed in the current version of sequelize. </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Ok, I realized my mistake: I was assuming that sequelize would take care of the timestamps. This fixes the problem:</p>
  
  <pre><code>up: function (queryInterface, Sequelize) {
    console.log(User);
    return [
      queryInterface.bulkInsert('Users', [
        { username: "user1", createdAt: Date.now(), updatedAt: Date.now() },
        { username: "user2", createdAt: Date.now(), updatedAt: Date.now() }
      ])
    ];
  }
  </code></pre>
  
  <p>But I'm still wondering if this is the right way to seed my database. Is there a way to do it using <code>User.create({})</code>?</p>