Emi Matchu
5cc219c795
including validation logic to make sure it's not already connected to another one! The `intent` param on the NeoPass form is part of the key! Thanks OmniAuth for making it easy to pass that data through!
5 lines
147 B
Ruby
5 lines
147 B
Ruby
class AddUniqueIndexForOmniauthToUsers < ActiveRecord::Migration[7.1]
|
|
def change
|
|
add_index :users, [:provider, :uid], unique: true
|
|
end
|
|
end
|