Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit 215fc85

Browse files
committed
Add unique index on invitations
1 parent cfbb11c commit 215fc85

File tree

4 files changed

+147
-146
lines changed

4 files changed

+147
-146
lines changed

db/invitations.schema

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ create_table :invitations, force: :cascade do |t|
55
t.timestamps
66

77
t.index [:code]
8+
t.index [:email], unique: true
89
end
910

1011
add_foreign_key :invitations, :users, column: :inviter_id

infra/record/boil_suites_test.go

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)