You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/db/migrate/20260515200000_add_omniauth...

10 lines
273 B

# frozen_string_literal: true
class AddOmniauthToUsers < ActiveRecord::Migration[8.1]
def change
add_column :users, :provider, :string
add_column :users, :uid, :string
add_index :users, %i[provider uid], unique: true, where: 'provider IS NOT NULL'
end
end