"use strict";

module.exports = {
  up: function(m, types, done) {
    m.createTable("user", {
      email: { type: types.STRING, primaryKey: true },
      password: types.STRING,
      display_name:  types.STRING
    }).success(function() {
        done();
    });
  },
  down: function(m, types, done) {
    m.queryAndEmit("DROP TABLE IF EXISTS \"user\"").success(function() {
      done();
    });
  }
}

"use strict";

module.exports = {
  up: function(m, types, done) {
    m.createTable("user", {
      email: { type: "text", primaryKey: true },
      password: "text",
      display_name: "text"
    }).success(function() {
        done();
    });
  },
  down: function(m, types, done) {
    m.queryAndEmit("DROP TABLE IF EXISTS \"user\"").success(function() {
      done();
    });
  }
}

Use text as the datatype instead of the stupid type.STRING thing
Use text as the datatype instead of the stupid type.STRING thing
