1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-04 21:15:19 +02:00

add uniq index for users email to ensure uniqueness (#567)

This commit is contained in:
Adrien Poly 2024-03-25 20:59:49 +01:00 committed by GitHub
parent 39e6d1a2af
commit d2df5b2872
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddUniqIndexToUsersEmail < ActiveRecord::Migration[7.2]
def change
add_index :users, :email, unique: true
end
end