Browse Source

User needs unique on email.

pull/20/head
Zed A. Shaw 4 months ago
parent
commit
37e24e2f57
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      migrations/20200318222642_user_migration.js

+ 1
- 1
migrations/20200318222642_user_migration.js View File

@@ -3,7 +3,7 @@ exports.up = function(knex) {
return knex.schema.createTable('users', function (table) {
table.increments();
table.string('full_name').notNullable();
table.string('email').notNullable();
table.string('email').unique().notNullable();
table.boolean('send_emails').notNullable().defaultTo(false);
table.boolean('tos_agree').notNullable().defaultTo(false);
table.boolean('verified').notNullable().defaultTo(false);

Loading…
Cancel
Save