mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Add unique index for invite code tokens (#267)
This commit is contained in:
parent
c10fab9a7c
commit
841d5aaf50
2 changed files with 7 additions and 1 deletions
|
@ -0,0 +1,5 @@
|
|||
class AddTokenIndexToInviteCodes < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_index :invite_codes, :token, unique: true
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue