Skip to content

Commit

Permalink
Make emails unique in users table
Browse files Browse the repository at this point in the history
  • Loading branch information
bfbachmann committed Jul 27, 2018
1 parent cabf693 commit fabbc69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ CREATE TABLE users (
full_name TEXT NOT NULL,
username TEXT NOT NULL UNIQUE,
secret TEXT NOT NULL,
email TEXT NOT NULL,
email TEXT NOT NULL UNIQUE,
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT (now() at time zone 'utc')
);

Expand Down

0 comments on commit fabbc69

Please sign in to comment.