All files / db/migrations 20180206205813_create_users.js

100% Statements 11/11
100% Branches 0/0
100% Functions 3/3
100% Lines 11/11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17  3x 3x 3x 3x 3x 3x 3x 3x 3x       3x 2x    
 
exports.up = function(knex) {
  return knex.schema.createTable('users', table => {
    table.increments('id').primary();
    table.string('name');
    table.string('email');
    table.string('password');
    table.string('resetPasswordToken');
    table.string('resetPasswordExp');
    table.timestamps();
  });
};
 
exports.down = function(knex) {
  return knex.schema.dropTableIfExists('users');
};