mirror of
https://github.com/czhu12/canine.git
synced 2025-12-16 16:35:10 -06:00
7 lines
266 B
Ruby
7 lines
266 B
Ruby
class AddSSOProviderToProviders < ActiveRecord::Migration[7.2]
|
|
def change
|
|
add_reference :providers, :sso_provider, null: true, foreign_key: true
|
|
add_index :providers, [ :sso_provider_id, :uid ], unique: true, where: "sso_provider_id IS NOT NULL"
|
|
end
|
|
end
|