diff --git a/migrations/003-users-unique.sql b/migrations/003-users-unique.sql new file mode 100644 index 00000000..0ac56285 --- /dev/null +++ b/migrations/003-users-unique.sql @@ -0,0 +1,9 @@ +-- Up + +CREATE UNIQUE INDEX "users_username" ON "users" ("username"); +CREATE UNIQUE INDEX "users_email" ON "users" ("email"); + +-- Down + +DROP INDEX "users_email"; +DROP INDEX "users_username";