
exports.seed = function(knex, Promise) {
  return Promise.join(
    // Deletes ALL existing entries
    knex('table_name').del(),

    // Inserts seed entries
    knex('table_name').insert({id: 1, colName: 'rowValue'}),
    knex('table_name').insert({id: 2, colName: 'rowValue2'}),
    knex('table_name').insert({id: 3, colName: 'rowValue3'})
  );
};

@@ -1,9 +1,8 @@
-%0A
 exports.
@@ -47,25 +47,27 @@
 urn 
-Promise.join(%0A   
+knex('users').del()
  // 
@@ -103,251 +103,943 @@
     
-knex('table_name').del(),%0A%0A    // Inserts seed entries%0A    knex('table_name').insert(%7Bid: 1, colName: 'rowValue'%7D),%0A    knex('table_name').insert(%7Bid: 2, colName: 'rowValue2'%7D),%0A    knex('table_name').insert(%7Bid: 3, colName: 'rowValue3'%7D)%0A  );
+.then(function() %7B // Inserts seed entries one by one in series%0A      return knex('users').insert(%7B%0A        name: 'YamadaTaro',%0A        username: 'YamadaTaro',%0A        password_digest: 'password1',%0A        birthdayY: 1980,%0A        birthdayM: 1%0A        birthdayD: 1%0A        gender: 'male'%0A        postalCode: 1111111%0A        address: '%E5%8F%B0%E5%8D%97%E5%AE%89%E5%B9%B3%E5%8C%BA1-1-1'%0A        email: 'anpin@gmail.com'%0A        mobilePhoneNumber: 09012345678%0A        receiveEmail: true%0A        receiveSNS: true%0A      %7D);%0A    %7D).then(function () %7B%0A      return knex('users').insert(%7B%0A        name: 'YamadaHanako',%0A        username: 'YamadaHanako',%0A        password_digest: 'password2',%0A        birthdayY: 1980,%0A        birthdayM: 2%0A        birthdayD: 2%0A        gender: 'female'%0A        postalCode: 2222222%0A        address: '%E5%8F%B0%E5%8D%97%E5%AE%89%E5%B9%B3%E5%8C%BA2-2-2'%0A        email: 'anpin2@gmail.com'%0A        mobilePhoneNumber: 08012345678%0A        receiveEmail: true%0A        receiveSNS: true%0A      %7D);%0A    %7D)
 %0A%7D;%0A

Edit seed